Skip to content

build(deps): bump actions/checkout from 3 to 4 #2188

build(deps): bump actions/checkout from 3 to 4

build(deps): bump actions/checkout from 3 to 4 #2188

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
pull_request:
jobs:
# Run build, ESLint, Stylelint
lint:
name: Lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install packages
run: npm ci
- name: Run build
run: npm run build
- name: Run lint
run: npm run lint
# Test on jest, Upload coverage to Codecov
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install packages
run: npm ci
- name: Run test
run: npm run test -- --coverage
- name: Upload Coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}