diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a71c1f5..499a255 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,14 +45,6 @@ jobs: exit 1 fi - create-minio-bucket: - runs-on: ubuntu-latest - steps: - - run: | - wget -q https://dl.min.io/client/mc/release/linux-amd64/mc - chmod a+x mc - ./mc mb play/actions-cache || exit 0 - test-save: needs: create-minio-bucket strategy: @@ -72,10 +64,10 @@ jobs: - name: Save cache uses: ./ with: - endpoint: play.min.io - accessKey: "Q3AM3UQ867SPQQA43P2F" - secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" - bucket: actions-cache + endpoint: ${{ secrets.ENDPOINT }} + accessKey: ${{ secrets.ACCESS_KEY }} + secretKey: ${{ secrets.SECRET_KEY }} + bucket: ${{ secrets.BUCKET }} use-fallback: false key: test-${{ runner.os }}-${{ github.run_id }} path: | @@ -95,10 +87,10 @@ jobs: - name: Restore cache uses: ./ with: - endpoint: play.min.io - accessKey: "Q3AM3UQ867SPQQA43P2F" - secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" - bucket: actions-cache + endpoint: ${{ secrets.ENDPOINT }} + accessKey: ${{ secrets.ACCESS_KEY }} + secretKey: ${{ secrets.SECRET_KEY }} + bucket: ${{ secrets.BUCKET }} use-fallback: false key: test-${{ runner.os }}-${{ github.run_id }} path: | @@ -124,10 +116,10 @@ jobs: - name: Restore cache uses: ./ with: - endpoint: play.min.io - accessKey: "Q3AM3UQ867SPQQA43P2F" - secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" - bucket: actions-cache + endpoint: ${{ secrets.ENDPOINT }} + accessKey: ${{ secrets.ACCESS_KEY }} + secretKey: ${{ secrets.SECRET_KEY }} + bucket: ${{ secrets.BUCKET }} use-fallback: false key: test-${{ runner.os }}-${{ github.run_id }}-${{ github.sha }} path: | @@ -160,10 +152,10 @@ jobs: - name: Save cache uses: ./save/ with: - endpoint: play.min.io - accessKey: "Q3AM3UQ867SPQQA43P2F" - secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" - bucket: actions-cache + endpoint: ${{ secrets.ENDPOINT }} + accessKey: ${{ secrets.ACCESS_KEY }} + secretKey: ${{ secrets.SECRET_KEY }} + bucket: ${{ secrets.BUCKET }} use-fallback: false key: test-save-only-${{ runner.os }}-${{ github.run_id }} path: | @@ -183,10 +175,10 @@ jobs: - name: Restore cache uses: ./restore/ with: - endpoint: play.min.io - accessKey: "Q3AM3UQ867SPQQA43P2F" - secretKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" - bucket: actions-cache + endpoint: ${{ secrets.ENDPOINT }} + accessKey: ${{ secrets.ACCESS_KEY }} + secretKey: ${{ secrets.SECRET_KEY }} + bucket: ${{ secrets.BUCKET }} use-fallback: false key: test-save-only-${{ runner.os }}-${{ github.run_id }} path: |