Repository navigation
68 lines (53 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
68 lines (53 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
branches:
- main
- staging
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Lint and typecheck
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Set up Node.js
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn --frozen-lockfile --network-timeout 600000
- name: Run ESLint
run: yarn eslint .
- name: Run TypeScript checks
run: yarn next typegen && yarn tsc --noEmit
- name: Test career applications
run: yarn test:career
- name: Test career content transfer
run: yarn test:career-transfer
container:
name: Build Docker image
needs: quality
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Build image without publishing
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
with:
context: .
file: ./Dockerfile
platforms: ${{ vars.IMAGE_PLATFORM || 'linux/amd64' }}
push: false
cache-from: type=gha,scope=frt-app
cache-to: type=gha,mode=max,scope=frt-app