generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1007 Bytes
/
ci.yaml
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: e2e
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Cache tools
uses: actions/cache@v3
with:
path: bin/download
key: cache-tools-go-${{ hashFiles('go.mod') }}-${{ hashFiles('Makefile') }}
- name: Cache files
uses: actions/cache@v3
with:
path: cache
key: cache-files-go-${{ hashFiles('go.mod') }}-${{ hashFiles('Makefile') }}
- name: Setup tools
run: make setup
- name: Run code check
run: make check-generate
- name: Run lint
run: make lint
- name: Run environment
working-directory: e2e
run: |
make start
make install-test-pod
make install-cilium-policy
- name: Test
working-directory: e2e
run: make test