-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (49 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Test
on:
- push
- pull_request
jobs:
test-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Tools
uses: asdf-vm/actions/install@v3
- name: Before Install
run: |
mkdir -p shogi/boards
touch shogi/boards/temp.sqlite3
- run: npm ci
- name: Typecheck files not covered by tests
run: npx tsc --noEmit
env:
NODE_OPTIONS: --max-old-space-size=4096
- name: Test
run: npm run test:coverage
env:
NODE_OPTIONS: --trace-warnings --trace-deprecation --trace-exit --trace-uncaught --unhandled-rejections=strict --max-old-space-size=4096
- name: Set up reviewdog
if: ${{ github.event_name == 'pull_request' }}
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run reviewdog
continue-on-error: true
if: ${{ github.event_name == 'pull_request' }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git ls-files | grep eslintrc | xargs -L 1 dirname | paste -sd ' ' | xargs -I {} sh -c "npx eslint --ext js,ts -f rdjson {} | reviewdog -f=rdjson -name=ESLint -reporter=github-pr-review"
- name: codecov
continue-on-error: true
run: npx codecov
test-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Tools
uses: asdf-vm/actions/install@v3
- name: build
run: cargo build --all --verbose
- name: test
run: cargo test --all --verbose