Skip to content

Merge pull request #1276 from skaut/parallel-readme-fetching #1395

Merge pull request #1276 from skaut/parallel-readme-fetching

Merge pull request #1276 from skaut/parallel-readme-fetching #1395

Workflow file for this run

name: "CI"
on:
push:
branches: "*"
pull_request:
env:
cache-version: 1
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: "Install NPM dependencies"
run: |
npm ci
- name: "Build"
run: |
npm run build
- name: "Check for clean repo"
run: |
[ -z "$(git status --porcelain)" ] || (c=$?; git status; (exit $c))
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: "Install NPM dependencies"
run: |
npm ci
- name: "Lint"
run: |
npm run lint
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: "Install NPM dependencies"
run: |
npm ci
- name: "Run tests"
run: |
npm test
- name: "Upload coverage results"
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true