-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (33 loc) · 1.04 KB
/
run-unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Run Unit-Tests
on: [pull_request]
concurrency:
group: ${{ github.workflow }} - ${{ github.event.pull_request.id }}
cancel-in-progress: true
jobs:
unit-tests:
name: Run Unit-Tests
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout Repository
uses: actions/checkout@v3
# https://github.com/marketplace/actions/setup-pnpm
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: false
# https://github.com/marketplace/actions/setup-node-js-environment
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: lts/*
check-latest: true
- name: Install dependencies
run: pnpm install ${{ github.actor != 'dependabot[bot]' && '--frozen-lockfile' || '--no-frozen-lockfile' }}
- name: Run Unit-Tests
run: pnpm test
- name: Build
run: pnpm run build