Skip to content

ci: add build job

ci: add build job #201

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
# cancel in-progress runs on new commits to same PR (gitub.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
checks: write
jobs:
Lint:
strategy:
matrix:
node: ['20']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.3
with:
version: 8.14.0
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- uses: wearerequired/lint-action@v2
with:
tsc: true
prettier: true
Build:
strategy:
matrix:
node: ['20']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.3
with:
version: 8.14.0
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build