-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (63 loc) · 1.56 KB
/
pr.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
66
67
68
69
name: Pull Request
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# server:
# can we run the server, is the API alright?
#
# Priority is to fail fast, so first can we compile and build
# the server binary, then tests, and linting.
server:
defaults:
run:
working-directory: server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: build-server
run: go build ./cmd/server
- name: test
run: go test ./...
- name: lint
run: golangci-lint run
# frontend: describes the steps we take to
# ensure that the nuxt application is buildable.
#
# The priority here is to fail fast on critical things.
# 1. We can actually build the application
# 2. It typechecks & lints
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: yarn
run: yarn
- name: generate
run: yarn generate
- name: typecheck
run: yarn nuxi typecheck
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- run: cd frontend && yarn && yarn eslint .
name: lint
# prmectl: just make sure that it's going to be ok.
prmectl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: shellcheck bin/prmectl
run: shellcheck bin/prmectl