@@ -2,22 +2,28 @@ name: test
22on :
33 push :
44 branches :
5- - master
5+ - " main"
6+ - " release/*"
7+ paths-ignore :
8+ - ' **/*.md'
69 pull_request :
710 branches :
8- - master
11+ - " main"
12+ - " release/*"
13+ paths-ignore :
14+ - ' **/*.md'
915
1016jobs :
1117 verify :
12- runs-on : ubuntu-latest
18+ runs-on : ubuntu-24.04
1319 steps :
1420 - name : Checkout Code
15- uses : actions/checkout@v3
21+ uses : actions/checkout@v4
1622 with :
1723 fetch-depth : 2 # we want the HEAD commit and the previous commit to compare changed files
1824
1925 - name : Set up Go
20- uses : actions/setup-go@v3
26+ uses : actions/setup-go@v5
2127 with :
2228 go-version-file : ' go.mod'
2329 cache : true
3137 # we only want to run tests if any code changes (not for README or docs changes)
3238 - name : Check Changed Files
3339 id : files
34- uses : tj-actions/changed-files@v41.0.0
40+ uses : tj-actions/changed-files@v45
3541 with :
3642 files : |
3743 .github
@@ -56,32 +62,34 @@ jobs:
5662 (needs.verify.outputs.code-files-changed || startsWith(github.ref, 'refs/tags/v'))
5763 needs :
5864 - verify
59- runs-on : ubuntu-latest
65+ runs-on : ubuntu-24.04
6066 strategy :
6167 matrix :
6268 keycloak-version :
63- - ' 21.0.1'
64- - ' 20.0.5'
65- - ' 19.0.2'
69+ - ' 26.0.8'
70+ - ' 25.0.6'
71+ - ' 24.0.5'
72+ - ' 23.0.7'
73+ - ' 22.0.5'
6674 fail-fast : false
6775 concurrency :
6876 group : ${{ github.head_ref || github.run_id }}-${{ matrix.keycloak-version }}
6977 cancel-in-progress : true
7078 steps :
7179 - name : Checkout Code
72- uses : actions/checkout@v3
80+ uses : actions/checkout@v4
7381
7482 - name : Set up Go
75- uses : actions/setup-go@v3
83+ uses : actions/setup-go@v5
7684 with :
7785 go-version-file : ' go.mod'
7886 cache : true
7987
8088 - name : Setup Terraform
81- uses : hashicorp/setup-terraform@v1
89+ uses : hashicorp/setup-terraform@v3
8290 with :
8391 terraform_wrapper : false
84- terraform_version : 1.9.5
92+ terraform_version : 1.9.8
8593
8694 - name : Start Keycloak Container
8795 run : |
99107 run : ./scripts/wait-for-local-keycloak.sh && ./scripts/create-terraform-client.sh
100108
101109 - name : Get Keycloak Version
102- uses : actions/github-script@v6
110+ uses : actions/github-script@v7
103111 id : keycloak-version
104112 env :
105113 KEYCLOAK_VERSION : ${{ matrix.keycloak-version }}
@@ -108,12 +116,13 @@ jobs:
108116 return process.env.KEYCLOAK_VERSION.split("-")[0]
109117 - name : Test
110118 run : |
119+ terraform version
111120 go mod download
112121 make testacc
113122 env :
114123 KEYCLOAK_CLIENT_ID : terraform
115124 KEYCLOAK_CLIENT_SECRET : 884e0f95-0f42-4a63-9b1f-94274655669e
116- KEYCLOAK_CLIENT_TIMEOUT : 30
125+ KEYCLOAK_CLIENT_TIMEOUT : 120
117126 KEYCLOAK_REALM : master
118127 KEYCLOAK_URL : " http://localhost:8080"
119128 KEYCLOAK_TEST_PASSWORD_GRANT : " true"
0 commit comments