-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (52 loc) · 1.49 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
# will run on all PRs that are opened or updated (synchronized)
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
# changelog must be edited for every PR
changelog:
name: Updates Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Changelog Enforcer
uses: dangoslen/[email protected]
with:
changeLogPath: 'CHANGELOG.md'
skipLabels: 'no-changelog'
build:
name: Lint, typecheck, test, build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Use NPM 10.x
run: npm i -g npm@8
- name: Install Dependencies
run: npm ci
- name: Typecheck
run: npm run check
- name: Lint
run: npm run lint
- name: Check Formatting
run: npm run prettier:check
- name: Test
run: npm run test:ci
- name: Build
run: npm run build
docker_build:
# Don't push anything to ECR, just build the docker image to make sure there are no build failures
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
run: |
docker build -t registryadmin \
--build-arg REGISTRY_API_DOMAIN=$REGISTRY_API_DOMAIN .