Skip to content

Merge pull request #1 from pksunkara/dependabot/npm_and_yarn/sinclair… #8

Merge pull request #1 from pksunkara/dependabot/npm_and_yarn/sinclair…

Merge pull request #1 from pksunkara/dependabot/npm_and_yarn/sinclair… #8

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'push' && github.run_number }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: deps-${{ hashFiles('package.json') }}
restore-keys: |
deps-
- name: Install dependencies
run: yarn install
- name: Test
run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: deps-${{ hashFiles('package.json') }}
restore-keys: |
deps-
- name: Install dependencies
run: yarn install
- name: Lint check
run: yarn lint
- name: Formatting check
run: yarn format-check