Skip to content

Commit

Permalink
initial matrix for building
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Nov 11, 2023
1 parent 07fba20 commit 1b7333b
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Integration Tests between the different implementations

# Run either when pushing directly to main/master or in a PR targeting main/master
on:
push:
branches:
- master
- main
paths:
- "**.go"
- "go/go.mod"
- "go/go.sum"
- ".github/workflows/integration.yml"
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
env:
VAULT_STACK: nitor-vault-integration-testing
strategy:
matrix:
lang: [go, rust]
fail-fast: true
defaults:
run:
working-directory: ${{matrix.lang}}
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{secrets.AWS_CI_ROLE}}
aws-region: eu-west-1
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
if: ${{ matrix.lang == 'rust'}}
with:
toolchain: stable
- uses: actions-rs/toolchain@v1
if: ${{ matrix.lang == 'rust'}}
with:
toolchain: stable
- uses: actions/setup-go@v4
if: ${{ matrix.lang == 'go'}}
with:
go-version: ">=1.21.0"
- name: Run build script for compiled languages
if: ${{ hashFiles(join(matrix.lang,'build.sh')) != '' }}
run: "./build.sh"
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: ${{matrix.lang}}-binary
path: ${{matrix.lang}}/vault
# create_keys:
# runs-on: ubuntu-latest
# env:
# VAULT_STACK: nitor-vault-integration-testing
# strategy:
# matrix:
# lang: [go, rust]
# fail-fast: true
# defaults:
# run:
# working-directory: ${{matrix.lang}}
# steps:
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: ${{secrets.AWS_CI_ROLE}}
# aws-region: eu-west-1
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# if: ${{ matrix.lang == 'go'}}
# with:
# python-version: "3.12"

0 comments on commit 1b7333b

Please sign in to comment.