Skip to content

Commit

Permalink
chore: updated integration test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Jun 4, 2022
1 parent 3b4d28c commit 56bf75d
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
name: Run Integration Tests

name: Integration Tests
on:
push:
branches:
- main
paths:
- octopusdeploy/**

defaults:
run:
shell: bash

jobs:
test:
env:
GO111MODULE: on
OCTOPUS_VERSION: "2020.2.7"
OCTOPUS_VERSION: "2022.1"
OCTOPUS_URL: "http://localhost:8080"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build octopusdeploy module
run: go build -v ./octopusdeploy

- name: Start the Octopus container
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
run: go build -a -race -v ./...
- name: Vet
run: go vet -v ./...
- uses: dominikh/staticcheck-action@v1.2.0
- name: Start Octopus Container
run: cd ./tests && docker-compose up --detach

- name: Generate an API key
- name: Generate API Key
run: ./tests/Create-ApiKey.ps1
shell: pwsh

- name: Run integration tests
run: go test -v ./integration/...
- name: Run Integration Tests
run: go test -v ./integration/...

0 comments on commit 56bf75d

Please sign in to comment.