Skip to content

Commit

Permalink
add reuse workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Christoff <[email protected]>
  • Loading branch information
schristoff committed Feb 5, 2024
1 parent 929fdf9 commit 9df19e7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/integ-reuseable-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: integ reusable workflow

on:
workflow_call:
inputs:
test_name:
type: string
required: false
env:
GOVERSION: 1.20.7

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
- uses: actions/setup-go@v4
with:
go-version: "${{ env.GOVERSION }}"
cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io/getporter
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Agent
run: go run mage.go build
shell: bash
- name: Integration Test
run: go test -v -timeout=10m -tags=integration ./tests/integration/"${{inputs.test_name}}"".go
shell: bash

0 comments on commit 9df19e7

Please sign in to comment.