-
Notifications
You must be signed in to change notification settings - Fork 65
43 lines (35 loc) · 1001 Bytes
/
test.yml
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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Scala compile
runs-on: ubuntu-latest
steps:
- name: Wit Init
uses: sifive/wit/actions/[email protected]
with:
additional_packages: [email protected]:sifive/environment-blockci-sifive.git::0.7.0
- name: Run wake scala compile
uses: sifive/environment-blockci-sifive/actions/[email protected]
with:
command: -x 'compileScalaModule fpgaShellsScalaModule | getPathResult'
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run lint check
run: |
set +e # GitHub defaults to -e, but we want to do our own error handling
if matching_files=$(grep --files-with-matches '\s\+$' *); then
echo "Trailing whitespace detected. Please remove trailing whitespace in the following files:"
echo
echo "$matching_files"
exit 1
fi