From edce0b5a9b773ea33c0b137e3f216051ea028220 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sun, 22 Sep 2019 16:00:01 -0400 Subject: action test: setup mill --- .github/workflows/main.yml | 16 ++++++++++------ ci/Dockerfile | 3 --- ci/test/Dockerfile | 3 +++ 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 ci/Dockerfile create mode 100644 ci/test/Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a2cf5f..8fdd637 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,10 +9,14 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script + - name: Import key + run: echo "${{secrets.GPG_KEY}}" | gpg --import + - name: Setup mill run: | - echo Add other actions to build, - echo test, and deploy your project. - - uses: ./ci + curl -L https://github.com/lihaoyi/mill/releases/download/0.5.1/0.5.1 | sudo tee /usr/local/bin/mill > /dev/null + sudo chmod +x /usr/local/bin/mill + - name: Run tests + run: mill commando.test + - name: Publish + run: mill mill.scalalib.PublishModule/publishAll --sonatypeCreds "8VNUX6+2:${{secrets.dummy}}" --publishArtifacts __.publishArtifacts + - uses: ./ci/test diff --git a/ci/Dockerfile b/ci/Dockerfile deleted file mode 100644 index 00b7b89..0000000 --- a/ci/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM debian:bullseye - -CMD [ "echo", "hello world!"] diff --git a/ci/test/Dockerfile b/ci/test/Dockerfile new file mode 100644 index 0000000..00b7b89 --- /dev/null +++ b/ci/test/Dockerfile @@ -0,0 +1,3 @@ +FROM debian:bullseye + +CMD [ "echo", "hello world!"] -- cgit v1.2.3