-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (53 loc) · 1.68 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
66
67
68
69
name: Test
on:
- push
- pull_request
jobs:
test-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- 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
run: npx codecov
test-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-23
default: true
override: true
- name: build
run: cargo build --all --verbose
- name: test
run: cargo test --all --verbose