diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a464c6..1d5b7ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,15 @@ env: PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} PYPI_USERNAME: "__token__" TRAVIS_OS_NAME: linux + DOTNETVERSION: | + 6.0.x + 3.1.301 + GOVERSION: 1.22.x + GRADLEVERSION: "7.6" + JAVAVERSION: "11" + NODEVERSION: 20.x + PYTHONVERSION: 3.11.8 + jobs: build_sdk: name: build_sdk @@ -31,7 +40,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: ${{matrix.goversion}} + go-version: ${{ env.GOVERSION }} - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.9.0 with: @@ -41,16 +50,16 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: ${{matrix.nodeversion}} + node-version: ${{ env.NODEVERSION }} registry-url: https://registry.npmjs.org - name: Setup DotNet uses: actions/setup-dotnet@v3 with: - dotnet-version: ${{matrix.dotnetversion}} + dotnet-version: ${{ env.DOTNETVERSION }} - name: Setup Python uses: actions/setup-python@v4 with: - python-version: ${{matrix.pythonversion}} + python-version: ${{ env.PYTHONVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v3 with: @@ -79,19 +88,12 @@ jobs: strategy: fail-fast: true matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x language: - nodejs - python - dotnet - go - nodeversion: - - 18.x - pythonversion: - - "3.9" + prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -109,7 +111,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: ${{matrix.goversion}} + go-version: ${{ env.GOVERSION }} - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.9.0 with: @@ -149,15 +151,7 @@ jobs: path: ${{ github.workspace }}/bin/provider.tar.gz strategy: fail-fast: true - matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x - nodeversion: - - 18.x - pythonversion: - - "3.9" + test: name: test needs: build_sdk @@ -176,7 +170,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: ${{matrix.goversion}} + go-version: ${{ env.GOVERSION }} - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.9.0 with: @@ -186,16 +180,16 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: ${{matrix.nodeversion}} + node-version: ${{ env.NODEVERSION }} registry-url: https://registry.npmjs.org - name: Setup DotNet uses: actions/setup-dotnet@v3 with: - dotnet-version: ${{matrix.dotnetversion}} + dotnet-version: ${{ env.DOTNETVERSION }} - name: Setup Python uses: actions/setup-python@v4 with: - python-version: ${{matrix.pythonversion}} + python-version: ${{ env.PYTHONVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v3 with: @@ -227,19 +221,12 @@ jobs: strategy: fail-fast: true matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x language: - nodejs - python - dotnet - go - nodeversion: - - 18.x - pythonversion: - - "3.9" + permissions: contents: write