From fcc5354e817ec7153071780b6f91865e3450a687 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Sat, 10 Apr 2021 17:21:46 +0200 Subject: [PATCH] Add github action for ci --- .github/renovate.json | 12 +++++++++++ .github/workflows/auto-approve.yml | 13 ++++++++++++ .github/workflows/ci.yml | 33 ++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/auto-approve.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..defbaef7 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,12 @@ +{ + "automerge": true, + "labels": ["type: dependencies"], + "packageRules": [ + { + "matchManagers": [ + "sbt" + ], + "enabled": false + } + ] +} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 00000000..0d800a3a --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,13 @@ +name: Auto approve + +on: + pull_request_target + +jobs: + auto-approve: + runs-on: ubuntu-20.04 + steps: + - uses: hmarr/auto-approve-action@v2.1.0 + if: github.actor == 'scala-steward' + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f0a12ed2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI +on: + pull_request: +jobs: + ci-matrix: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + java: [ 'openjdk@1.11' ] + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 100 + - uses: jorelali/setup-elm@v3 + with: + elm-version: 0.19.1 + - uses: bahmutov/npm-install@v1 + - name: Fetch tags + run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* + - uses: olafurpg/setup-scala@v10 + with: + java-version: ${{ matrix.java }} + - name: Coursier cache + uses: coursier/cache-action@v6 + - name: sbt ci ${{ github.ref }} + run: sbt ci + ci: + runs-on: ubuntu-20.04 + needs: [ci-matrix] + steps: + - name: Aggregate of lint, and all tests + run: echo "ci passed"