-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (30 loc) · 1.01 KB
/
pr_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
name: Pr Tests
on:
pull_request:
branches:
- master
jobs:
tests:
name: Build and run tests
runs-on: ubuntu-latest
container: golang:1.20.2-alpine
steps:
- name: Install soft
run: |
apk add make bash jq curl git zip
wget https://releases.hashicorp.com/terraform/1.4.4/terraform_1.4.4_linux_amd64.zip
unzip terraform_1.4.4_linux_amd64.zip
cp terraform /usr/local/bin/
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Build
run: |
git config --global --add safe.directory /__w/cluster.dev/cluster.dev
git fetch --prune --unshallow --tags && make && cp ./bin/linux-amd64/cdev /usr/local/bin/
- name: Run tests
run: cd tests/test-project/ && cdev plan --tf-plan -l debug && cdev apply --force -l debug && cdev destroy --force -l debug
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}