-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.35 KB
/
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
44
45
46
name: test
on: [push]
jobs:
test:
name: Test haskell codes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
id: haskell-setup
with:
ghc-version: "8.8.3"
enable-stack: true
stack-version: "2.5.1"
- name: Restore caches
uses: actions/cache@v2
with:
path: |
${{steps.haskell-setup.outputs.stack-path}}
~/.stack
./.stack-work/
key: ${{ runner.os }}-${{ hashFiles('**/package.yaml') }}-${{ hashFiles('**/onix.cabal') }}-${{ hashFiles('**/stack.yaml.lock') }}
restore-keys: |
${{ runner.os }}-
- run: ls -lah ${{steps.haskell-setup.outputs.stack-path}}
- run: make test
e2e:
name: Test e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 12.x
- name: Restore caches
uses: actions/cache@v2
with:
path: |
~/.npm
./node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-
- run: npm install
- run: npx bazelisk test //e2e/go:snapshot_test