Merge pull request #400 from sanger/dependabot/npm_and_yarn/vue-i18n-… #706
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: CI | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
branches: | |
- develop | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install packages using npm | |
run: npm ci | |
- name: Lint using ESLint | |
run: npm run lint | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install packages using npm | |
run: npm ci | |
- name: Format using Prettier | |
run: npm run format | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install packages using npm | |
run: npm ci | |
- name: Run tests using Vitest | |
run: npm test run |