Configureのリファクタ #3
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: Lint and Test | |
on: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
- '!release/**' | |
paths: | |
- '**.js' | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ vars.DEFAULT_NODE_VERSION }} | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: Set up npm | |
run: | | |
npm ci | |
- name: Exec lint command | |
run: | | |
npm run lint | |
- name: Exec test command | |
run: | | |
npm run test |