-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (25 loc) · 966 Bytes
/
Copy pathci.yaml
File metadata and controls
31 lines (25 loc) · 966 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
name: CI
on:
push:
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: feature/github-repo-importer
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: feature/github-repo-importer/go.mod
- name: Build
run: go build ./...
- name: Test
run: go test ./...
- name: Check generated schemas are up to date
run: |
go run . schema
git diff --exit-code ../../.schemas/repository-config.schema.json ../../.schemas/teams-config.schema.json ../../.schemas/members-config.schema.json \
|| { echo "::error::Generated schemas in .schemas/ are stale. Run 'go run . schema' in feature/github-repo-importer and commit the result."; exit 1; }