Skip to content

Commit

Permalink
simplify integration testing with matrix jobs (#1799)
Browse files Browse the repository at this point in the history
* simplify integration testing with matrix jobs

* check if all of the integration tests are in the test-integration workflow
  • Loading branch information
vdovhanych committed Mar 2, 2024
1 parent c9966ba commit e15a083
Show file tree
Hide file tree
Showing 96 changed files with 180 additions and 6,400 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check integration tests workflow

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
*.nix
go.*
**/*.go
integration_test/
config-example.yaml
- uses: DeterminateSystems/nix-installer-action@main
if: steps.changed-files.outputs.any_changed == 'true'
- uses: DeterminateSystems/magic-nix-cache-action@main
if: steps.changed-files.outputs.any_changed == 'true'

- name: Generate and check integration tests
if: steps.changed-files.outputs.any_changed == 'true'
run: |
nix develop --command bash -c "cd cmd/gh-action-integration-generator/ && go generate"
git diff --exit-code .github/workflows/test-integration.yaml
- name: Show missing tests
if: failure()
run: |
git diff .github/workflows/test-integration.yaml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/test-integration-v2-TestACLAllowStarDst.yaml

This file was deleted.

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/test-integration-v2-TestACLAllowUser80Dst.yaml

This file was deleted.

This file was deleted.

Loading

0 comments on commit e15a083

Please sign in to comment.