-
Notifications
You must be signed in to change notification settings - Fork 103
37 lines (36 loc) · 979 Bytes
/
acc-test.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: E2E Test
on:
pull_request:
types: [ 'opened', 'synchronize' ]
paths:
- '.github/**'
- '**.go'
- '**.tf'
- '.github/workflows/**'
- '**.md'
- '**/go.mod'
jobs:
acc-tests:
runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-loadbalancer]
environment:
name: acctests
steps:
- uses: actions/checkout@v3
- name: init
run: |
docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make generate
- name: e2e test
run: |
sh scripts/ci-e2e.sh
- name: upload test version snapshots
uses: actions/upload-artifact@v3
with:
name: TestRecord-${{ github.event.number }}
retention-days: 60
path: |
examples/**/TestRecord.md.tmp
- name: version-upgrade test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sh scripts/ci-version-upgrade.sh