-
Notifications
You must be signed in to change notification settings - Fork 98
51 lines (42 loc) · 1.56 KB
/
E2E-test.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
# Name of the workflow
name: E2E-test
# Workflow triggers -- When a pull request is made for the listed branches
on:
pull_request:
branches:
- master
- v2.30
- v2.29
# Jobs executed when workflow is triggered
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Strategy allows specifying matrix axis(es) that will run for the test
strategy:
matrix:
tests: ["NOLOOP=1", "NOLOOP=1 TEST_PATTERNS=sall"]
# Variables that are available to all steps in the job
env:
GOPATH: /home/runner/work/anax/anax/go
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
path: go/src/github.com/${{github.repository}}
# Prepares the environment by setting up golang
- name: Set up golang 1.21
uses: actions/setup-go@v2
with:
go-version: '1.21'
check-latest: true
# Build anax binaries
- name: Build anax binaries
run: cd ${GOPATH}/src/github.com/${GITHUB_REPOSITORY} && make
# Build the e2edev docker images
- name: Build the e2edev docker images
run: cd ${GOPATH}/src/github.com/${GITHUB_REPOSITORY} && make -C test build-remote
# E2E development test
- name: E2E dev-test
run: cd ${GOPATH}/src/github.com/${GITHUB_REPOSITORY} && make -C test clean && make -C test test TEST_VARS=${{matrix.tests}}