build: Update dev dependencies #10
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- releases/v* | |
pull_request: | |
jobs: | |
validate-dependencies: | |
name: Validate dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn with Corepack | |
run: corepack enable | | |
corepack prepare yarn@stable --activate | |
- name: yarn install | |
run: yarn install --immutable --immutable-cache | |
if: ${{ github.event_name != 'pull_request' }} | |
- name: yarn install --check-cache | |
run: yarn install --immutable --immutable-cache --check-cache | |
if: ${{ github.event_name == 'pull_request' }} | |
compile: | |
name: Compile TypeScript | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn with Corepack | |
run: corepack enable | | |
corepack prepare yarn@stable --activate | |
- name: compile | |
run: yarn compile | |
lint: | |
name: Run ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn with Corepack | |
run: corepack enable | | |
corepack prepare yarn@stable --activate | |
- name: lint | |
run: yarn lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn with Corepack | |
run: corepack enable | | |
corepack prepare yarn@stable --activate | |
- name: jest | |
run: yarn test |