From f0d5c67ae8bfcffc134d2bef5ce424f2867c70b9 Mon Sep 17 00:00:00 2001 From: Rimo Date: Fri, 3 Mar 2023 21:10:20 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a57e84..ea2531e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,3 +26,21 @@ jobs: with: name: dist path: dist/ + + test: # make sure the action works on a clean machine without building + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + version: [1.7.0, 1.7.14, latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: ./ + with: + ossutil-version: ${{ matrix.version }} + endpoint: ${{ secrets.OSS_ENDPOINT }} + access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }} + access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }} + - run: ossutil -v + - run: ossutil ls > /dev/null + shell: bash