Files
setup-ossutil/.github/workflows/test.yml
2022-09-29 01:35:35 +08:00

27 lines
671 B
YAML

name: "test"
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
schedule:
- cron: '0 0 * * *'
jobs:
test: # make sure the action works on a clean machine without building
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./
with:
ossutil-version: 'latest'
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