Skip to content

feat: add 1.22

feat: add 1.22 #28

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
env:
VERSION: latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 9
run_install: true
- name: Generate client
run: pnpm generate
- name: Unit test
env:
TEST_GITEA_TOKEN: ${{ secrets.TEST_GITEA_TOKEN }}
run: pnpm coverage
typecheck:
name: Typecheck
runs-on: ubuntu-latest
env:
VERSION: latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 9
run_install: true
- name: Generate client
run: pnpm generate
- name: Typecheck
run: pnpm typecheck
check-format:
name: Check format
runs-on: ubuntu-latest
env:
VERSION: latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 9
run_install: true
- name: Check format
run: pnpm run lint:format