-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.04 KB
/
build.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
39
40
41
42
43
44
name: Build
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
# cache is broken until we can enable Corepack directly in setup-node
# instead of having to wait to enable it manually later.
# See https://github.com/actions/setup-node/issues/531.
# cache: 'yarn'
- name: Execute build
run: |
corepack enable
yarn config set nodeLinker node-modules
yarn plugin import workspace-tools
yarn install --immutable
yarn format-check
yarn test
yarn package
- name: Build Docker image
working-directory: ./docker
run: |
docker build \
--tag "gatlingcorp/enterprise-runner:latest" \
.