diff --git a/.github/workflows/java-ci-linux-musl.yaml b/.github/workflows/java-ci-linux-musl.yaml new file mode 100644 index 0000000..d96d135 --- /dev/null +++ b/.github/workflows/java-ci-linux-musl.yaml @@ -0,0 +1,21 @@ +name: Java CI on Linux Alpine + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + + - name: Build Docker Image + run: docker build -f Dockerfile-test-alpine -t alpine-test-image . + + - name: Run Docker Container + run: docker run alpine-test-image diff --git a/Dockerfile-test-alpine b/Dockerfile-test-alpine new file mode 100644 index 0000000..5eec6ae --- /dev/null +++ b/Dockerfile-test-alpine @@ -0,0 +1,16 @@ +# Usa a imagem base do Alpine +FROM alpine:latest + +# Instala o OpenJDK 8 e o Maven +RUN apk add --no-cache openjdk8 maven + +# Copia os arquivos do diretório desejado para o container +COPY ./ /dart-sass-maven-plugin + +# Define o diretório de trabalho +WORKDIR /dart-sass-maven-plugin + +RUN cp /dart-sass-maven-plugin/src/test/resources/musl/test-project/pom.xml /dart-sass-maven-plugin/src/test/resources/test-project/pom.xml + +# Comando padrão ou ação que será executada quando o container iniciar +CMD ["mvn", "test"] diff --git a/src/test/resources/musl/test-project/pom.xml b/src/test/resources/musl/test-project/pom.xml new file mode 100644 index 0000000..a56be2e --- /dev/null +++ b/src/test/resources/musl/test-project/pom.xml @@ -0,0 +1,42 @@ + + + + 4.0.0 + + com.github.cleydyr + test-project + 1.3.0-SNAPSHOT + + test-project + A simple test-project. + + + UTF-8 + 1.7 + 1.7 + + + + + + io.github.cleydyr + dart-sass-maven-plugin + 1.3.0-SNAPSHOT + + ${project.build.directory}/static/styles + + 1.71.1 + linux-musl + + + + compile + + compile-sass + + + + + + +