forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 836 Bytes
/
pull-request.yml
File metadata and controls
35 lines (32 loc) · 836 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
32
33
34
35
---
## Workflow to lint and test
name: pull-request
permissions:
contents: read
on:
pull_request:
push:
branches:
- 'main'
- '8**'
- '7.17'
jobs:
test:
name: Run Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum
- name: build
run: .ci/scripts/build-test.sh
- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: outputs/TEST-unit-*.xml