-
Notifications
You must be signed in to change notification settings - Fork 362
49 lines (40 loc) · 1.05 KB
/
lint-build-test.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
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint, Build & Test
on:
push:
branches: [$default-branch, main]
pull_request:
branches: [$default-branch, main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}
jobs:
lint-build-test:
name: Lint, Build & Test
runs-on: ubuntu-latest
container:
image: ghcr.io/layerzero-labs/devcon:1.1.4-bookworm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
options: --privileged
env:
HOME: /root
steps:
- name: Initialize docker services
run: |
umount /var/run/docker.sock
/usr/local/share/docker-init.sh
- name: Check out
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
fetch-depth: 0
submodules: recursive
- name: Yarn install
run: |
yarn install --immutable
- name: Build
run: |
yarn build
- name: Test
run: |
yarn test