Skip to content

Commit

Permalink
test actions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackieli-tes committed Jan 9, 2025
1 parent fa77d83 commit c2ac449
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down

0 comments on commit c2ac449

Please sign in to comment.