-
Notifications
You must be signed in to change notification settings - Fork 32
70 lines (68 loc) · 2.1 KB
/
racket.yml
File metadata and controls
70 lines (68 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Racket CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
racket-version: [ '6.12', '7.0', '7.4', '7.5', '7.6', '7.7', '7.8' ]
racket-variant: [ 'BC' ]
experimental: [false]
include:
- racket-version: '8.0'
racket-variant: 'CS'
experimental: true
- racket-version: '8.1'
racket-variant: 'CS'
experimental: true
- racket-version: 'current'
racket-variant: 'CS'
experimental: true
name: Racket ${{ matrix.racket-version }} ${{ matrix.racket-variant }}
steps:
- uses: actions/checkout@master
- name: Setup Racket
uses: Bogdanp/[email protected]
with:
architecture: 'x64'
version: ${{ matrix.racket-version }}
variant: ${{ matrix.racket-variant }}
- run: raco pkg install --auto -t dir racketscript-compiler/
- run: make unit-test
- run: make integration-test
coverage:
needs: build
runs-on: ubuntu-latest
name: Racket Coverage
steps:
- uses: actions/checkout@master
- name: Setup Racket
uses: Bogdanp/[email protected]
with:
architecture: 'x64'
variant: 'CS'
version: 'stable'
- name: Install package and its dependencies
run: |
raco pkg install --auto cover https://github.com/vishesh/cover-codecov.git
raco pkg install --auto -t dir racketscript-compiler/
- name: Generate coverage report
run: |
COVERAGE_MODE=1 raco cover -f codecov -b \
racketscript-compiler/racketscript/ \
tests/fixture.rkt
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.json
name: codecov-racketscript
fail_ci_if_error: false
verbose: true