-
Notifications
You must be signed in to change notification settings - Fork 69
39 lines (30 loc) · 993 Bytes
/
pull-request.yml
File metadata and controls
39 lines (30 loc) · 993 Bytes
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
name: Pull request
on:
pull_request:
branches:
- master
jobs:
build:
name: Build and Test
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.20.5'
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn test
- run: npx github-actions-ctrf@0.0.54 summary ctrf/ctrf-report.json --pull-request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker-build:
name: Build Docker Image
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: build image
run: docker build . --file Dockerfile -t ${{secrets.DOCKER_USER}}/tatum-kms:latest -t "${{secrets.DOCKER_USER}}/tatum-kms:$(cat ./package.json | jq -r ".version")"
- name: smoke test image
run: docker run -i ${{secrets.DOCKER_USER}}/tatum-kms:latest --help