Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from eclipse-pass/215-gh-actions-update
Browse files Browse the repository at this point in the history
Consolidate GH actions to single file
  • Loading branch information
jgara authored Jun 16, 2022
2 parents ef5f719 + 358d71d commit 1b05c7e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 53 deletions.
46 changes: 39 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pass-docker-services Continuous Integration
name: pass-policy-service Continuous Integration
on: [ pull_request, workflow_dispatch ]

concurrency:
Expand All @@ -12,10 +12,42 @@ jobs:
- run: echo "This is a CI build of branch ${{ github.ref }} in repository ${{ github.repository }}"
- run: echo "This job was triggered by a ${{ github.event_name }} event and is running on a ${{ runner.os }} server"

call-tests-unit:
name: Run Unit Tests
uses: eclipse-pass/pass-policy-service/.github/workflows/tests-unit.yml@main
run-unit-tests:
name: "Run Unit Tests"
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'

- name: Run Unit Tests
run: go test ./...

call-tests-integration:
name: Run Integration Tests
uses: eclipse-pass/pass-policy-service/.github/workflows/tests-integration.yml@main
run-integration-tests:
name: "Run Integration Tests"
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'

- name: Docker pull
run: docker-compose pull

- name: Start containers
run: docker-compose up -d

- name: Run Integration Tests
run: go test -tags=integration ./...

- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down
28 changes: 0 additions & 28 deletions .github/workflows/tests-integration.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/tests-unit.yml

This file was deleted.

0 comments on commit 1b05c7e

Please sign in to comment.