-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (55 loc) · 1.62 KB
/
pull-request.yaml
File metadata and controls
59 lines (55 loc) · 1.62 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
name: pull_request
on: [pull_request]
jobs:
helm-lint:
name: Run Helm lint Check
runs-on: ubuntu-latest
steps:
- name: Check out TS Project Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: helm-lint
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1
build_and_test:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
steps:
- name: checkout
uses: actions/checkout@v5
- uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js 16
uses: actions/setup-node@v5
with:
node-version: 16
- name: Install yarn
run: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install --no-install-recommends yarn
- name: Install dependecies
run: yarn
- name: TypeScript check
run: yarn tsc --noEmit
- name: ESLint
run: yarn eslint "src/**/*.{js,jsx,ts,tsx}"
- name: Prettier
run: yarn prettier --check .
- name: Test
run: yarn test
build_docker_image:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Build Docker image
uses: docker/build-push-action@v6
with:
push: false