Skip to content

Merge pull request #970 from tsg-ut/dependabot/npm_and_yarn/functions… #2736

Merge pull request #970 from tsg-ut/dependabot/npm_and_yarn/functions…

Merge pull request #970 from tsg-ut/dependabot/npm_and_yarn/functions… #2736

Workflow file for this run

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