diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..7b6d3e7c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,15 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + run: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' || github.actor != 'Copilot' }} + steps: + - uses: actions/checkout@master + - uses: Bogdanp/setup-racket@v1.5 + with: + version: stable + - run: raco pkg install --batch --auto --link --name resyntax + - run: raco test --package resyntax diff --git a/.github/workflows/main.yml b/.github/workflows/coverage.yml similarity index 60% rename from .github/workflows/main.yml rename to .github/workflows/coverage.yml index 158a95b6..592d4bd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/coverage.yml @@ -1,21 +1,21 @@ -name: CI +name: Code Coverage -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: - ci: - name: "Build and Test" + run: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' || github.actor != 'Copilot' }} steps: - uses: actions/checkout@master - uses: Bogdanp/setup-racket@v1.5 with: version: stable - - run: echo "github actor is ${{ github.actor }} and triggering actor is ${{ github.triggering_actor }}" - run: raco pkg install --batch --auto cover cover-coveralls - run: raco pkg install --batch --auto --link --name resyntax - - run: raco test --package resyntax - run: raco cover --format coveralls --suppress-log-execution --package resyntax env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}