forked from outscale/terraform-provider-outscale
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.66 KB
/
integration_tests.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
52
53
54
55
56
name: Integration tests
on:
pull_request_target:
branches:
- master
paths:
- '**.go'
- 'tests/**'
- 'scripts/integration.sh'
- 'GNUmakefile'
- '!**_test.go'
workflow_dispatch:
jobs:
Integration_tests:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: outscale-dev/frieza-github-actions/frieza-clean@master
with:
access_key: ${{ secrets.OSC_ACCESS_KEY }}
secret_key: ${{ secrets.OSC_SECRET_KEY }}
region: ${{ secrets.OSC_REGION }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.5.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.3.5
terraform_wrapper: false
- name: Build go test
run: make test
- name: Run integration tests
run: make test-integration
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}