refaktor: Delete ci #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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-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 |