generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 942 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
name: CI
on:
pull_request:
push:
branches:
- main
env:
cache-version: 1
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
id: cache-tools
uses: actions/cache@v3
with:
path: bin/download
key: cache-${{ env.cache-version }}-go-${{ hashFiles('go.mod') }}-${{ hashFiles('Makefile') }}
- name: Setup tools
if: steps.cache-tools.outputs.cache-hit != 'true'
run: make setup
- name: Run lint
run: make lint
- name: Run environment
run: make start
working-directory: e2e
- name: Install test pods
run: make install-test-pod
working-directory: e2e
- name: Install policy viewer
run: make install-policy-viewer
working-directory: e2e