From 8d8fa7c7faf501c043645e9f8585ef75886a4ec2 Mon Sep 17 00:00:00 2001 From: Domingos Creado Date: Wed, 18 Dec 2024 10:15:20 -0300 Subject: [PATCH] include Authlete 3.0 on the tests --- .github/workflows/test.yml | 46 ++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a24d7e3..80ebcec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' id: go - name: Check out code into the Go module directory @@ -65,12 +65,14 @@ jobs: - '1.6.*' - '1.7.*' - '1.8.*' + - '1.9.*' + - '1.10.*' steps: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' id: go - uses: hashicorp/setup-terraform@v3 @@ -96,28 +98,18 @@ jobs: run: | go test -v -cover ./internal/provider/ -# - name: TF acceptance tests - fapi_dev -# timeout-minutes: 10 -# env: -# TF_ACC: "1" -# AUTHLETE_API_SERVER: ${{ secrets.AUTHLETE_FAPI_DEV_API_SERVER }} -# AUTHLETE_SO_KEY: ${{ secrets.AUTHLETE_FAPI_DEV_SO_KEY }} -# AUTHLETE_SO_SECRET: ${{ secrets.AUTHLETE_FAPI_DEV_SO_SECRET }} -# TC_ACC_AUTHLETE_VERSION: "2.3" -# run: | -# go test -v -cover ./internal/provider/ -# -# - name: TF acceptance tests - nextdev -# timeout-minutes: 10 -# env: -# TF_ACC: "1" -# AUTHLETE_API_SERVER: ${{ secrets.AUTHLETE_NEXTDEV_API_SERVER }} -# AUTHLETE_IDP_SERVER: ${{ secrets.AUTHLETE_IDP_SERVER }} -# AUTHLETE_SO_KEY: ${{ secrets.AUTHLETE_NEXTDEV_SO_KEY }} -# AUTHLETE_SO_SECRET: ${{ secrets.IDP_ORG_TOKEN }} -# TC_ACC_AUTHLETE_VERSION: "3.0" -# AUTHLETE_API_VERSION: "3.0" -# AUTHLETE_API_SERVER_ID: ${{ secrets.AUTHLETE_API_SERVER_ID }} -# AUTHLETE_ORGANIZATION_ID: ${{ secrets.AUTHLETE_ORGANIZATION_ID }} -# run: | -# go test -v -cover ./internal/provider/ + + - name: TF acceptance tests - nextdev + timeout-minutes: 10 + env: + TF_ACC: "1" + AUTHLETE_API_SERVER: ${{ secrets.AUTHLETE_NEXTDEV_API_SERVER }} + AUTHLETE_IDP_SERVER: ${{ secrets.AUTHLETE_IDP_SERVER }} + AUTHLETE_SO_KEY: ${{ secrets.AUTHLETE_NEXTDEV_SO_KEY }} + AUTHLETE_SO_SECRET: ${{ secrets.IDP_ORG_TOKEN }} + TC_ACC_AUTHLETE_VERSION: "3.0" + AUTHLETE_API_VERSION: "3.0" + AUTHLETE_API_SERVER_ID: ${{ secrets.AUTHLETE_API_SERVER_ID }} + AUTHLETE_ORGANIZATION_ID: ${{ secrets.AUTHLETE_ORGANIZATION_ID }} + run: | + go test -v -cover ./internal/provider/