diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 04a4e4c..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,98 +0,0 @@ ---- -name: Test - -on: - pull_request: - branches: - - "main" - paths: - - "**_test.go" - -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - -jobs: - skip-duplicate-actions: - name: Skip Duplicate Actions - runs-on: ubuntu-latest - - steps: - - uses: fkirc/skip-duplicate-actions@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - cancel_others: true - concurrent_skipping: never - - test-ci: - name: Test CI - if: ${{ github.event_name == 'pull_request' || contains(github.event.head_commit.modified, 'ci/**/*_test.go') }} - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup Go latest - uses: actions/setup-go@v4 - with: - go-version: stable - - - name: Download dependencies & run tests - run: | - go mod download - go test -v ./... - working-directory: ci - - test-iac: - name: Test IaC - if: ${{ github.event_name == 'pull_request' || contains(github.event.head_commit.modified, 'iac/plm/**/*_test.go') || contains(github.event.head_commit.modified, 'iac/plm/util/**/*_test.go') }} - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup Go latest - uses: actions/setup-go@v4 - with: - go-version: stable - - - name: Download dependencies & run tests - run: | - go mod download - go test -v ./... - working-directory: iac/plm - - test-kind: - name: Test kind - if: ${{ github.event_name == 'pull_request' || contains(github.event.head_commit.modified, 'kind/**/*_test.go') }} - runs-on: ubuntu-latest - env: - PULUMI_SKIP_UPDATE_CHECK: "true" - PULUMI_CONFIG_PASSPHRASE: "" - - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup Go latest - uses: actions/setup-go@v4 - with: - go-version: stable - - - name: Pulumi login - run: pulumi login --local - working-directory: iac/kind - - - name: Download dependencies & run tests - run: | - go mod download - go test -v ./... - working-directory: iac/kind