Skip to content

📚 add github ci

📚 add github ci #3

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7.5.0
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Run pnpm audit
run: pnpm audit
- name: Build project
run: pnpm run build
- name: Run tests
run: pnpm run test