forked from across-protocol/relayer
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 940 Bytes
/
pr.yaml
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
name: "PR"
on:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30 # `yarn test` takes longer time
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
shell: bash
run: yarn --prefer-offline
- name: Build
shell: bash
run: yarn build
- run: yarn format
- name: Check format
run: |
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
echo "All files formatted"
else
echo "Running format is required"
exit 1
fi
- name: Validate configuration
run: yarn validate-config
- name: Test
shell: bash
run: yarn test