Skip to content

Commit bbecd0f

Browse files
authored
Split CI and code coverage workflows (#668)
1 parent 1ddbb79 commit bbecd0f

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build and Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
if: ${{ github.event_name == 'pull_request' || github.actor != 'Copilot' }}
9+
steps:
10+
- uses: actions/checkout@master
11+
- uses: Bogdanp/[email protected]
12+
with:
13+
version: stable
14+
- run: raco pkg install --batch --auto --link --name resyntax
15+
- run: raco test --package resyntax
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: CI
1+
name: Code Coverage
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
6-
ci:
7-
name: "Build and Test"
10+
run:
811
runs-on: ubuntu-latest
9-
if: ${{ github.event_name == 'pull_request' || github.actor != 'Copilot' }}
1012
steps:
1113
- uses: actions/checkout@master
1214
- uses: Bogdanp/[email protected]
1315
with:
1416
version: stable
15-
- run: echo "github actor is ${{ github.actor }} and triggering actor is ${{ github.triggering_actor }}"
1617
- run: raco pkg install --batch --auto cover cover-coveralls
1718
- run: raco pkg install --batch --auto --link --name resyntax
18-
- run: raco test --package resyntax
1919
- run: raco cover --format coveralls --suppress-log-execution --package resyntax
2020
env:
2121
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 commit comments

Comments
 (0)