引用文に著者を追加 #146
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Test | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
id: node_modules_cache_id | |
with: | |
path: | | |
${{ github.workspace }}/node_modules | |
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
if: steps.node_modules_cache_id.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Run code lint | |
run: npm run lint | |
- name: Run code tests | |
run: npm run test | |