-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.37 KB
/
contracts-token-tests.yml
File metadata and controls
54 lines (45 loc) · 1.37 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Run tests
name: contracts-token-tests
on:
pull_request:
paths:
- '.github/workflows/contracts-token-tests.yml'
- 'contracts/token/**'
push:
branches:
- main
workflow_dispatch:
permissions: {}
concurrency:
group: ci-contracts-token-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
tests:
name: contracts-token-tests/tests (bpr)
runs-on: ubuntu-latest
permissions:
contents: 'read' # Required to checkout repository code
steps:
- name: Checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 9
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
cache: pnpm
cache-dependency-path: contracts/token/pnpm-lock.yaml
- name: Install dependencies
working-directory: contracts/token
run: pnpm install --frozen-lockfile
- name: Run compile
working-directory: contracts/token
run: pnpm run compile
- name: Run unit tests
working-directory: contracts/token
run: pnpm test