-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathlibrary-solidity-hardhat-tests.yml
More file actions
52 lines (49 loc) · 1.82 KB
/
library-solidity-hardhat-tests.yml
File metadata and controls
52 lines (49 loc) · 1.82 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
name: library-solidity-hardhat-tests
on:
pull_request:
permissions: {}
jobs:
check-changes:
name: library-solidity-hardhat-tests/check-changes
permissions:
actions: 'read' # Required to read workflow run information
contents: 'read' # Required to checkout repository code
pull-requests: 'read' # Required to read pull request information
runs-on: ubuntu-latest
outputs:
changes-library-solidity: ${{ steps.filter.outputs.library-solidity }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
library-solidity:
- .github/workflows/library-solidity-hardhat-tests.yml
- library-solidity/**
- host-contracts/**
build:
name: library-solidity-hardhat-tests/build (bpr)
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-library-solidity == 'true' }}
runs-on: large_ubuntu_32
strategy:
matrix:
node-version: [20.x]
permissions:
contents: 'read' # Required to checkout repository code
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- run: cp ./library-solidity/.env.example ./library-solidity/.env
- run: npm --workspace=library-solidity ci --include=optional
- name: "Run JS/TS tests"
run: npm --workspace=library-solidity run test