You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
name: Automated HLS tests |
|
|
|
on: |
|
push: |
|
paths-ignore: |
|
- 'web/**' |
|
pull_request: |
|
paths-ignore: |
|
- 'web/**' |
|
|
|
env: |
|
S3_BUCKET: ${{ secrets.S3_BUCKET }} |
|
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} |
|
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} |
|
S3_REGION: ${{ secrets.S3_REGION }} |
|
S3_SECRET: ${{ secrets.S3_SECRET }} |
|
|
|
jobs: |
|
api: |
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
- id: skip_check |
|
uses: fkirc/skip-duplicate-actions@v5 |
|
with: |
|
concurrent_skipping: 'same_content_newer' |
|
- uses: actions/checkout@v3 |
|
- uses: actions/setup-go@v3 |
|
with: |
|
go-version: '1.18.8' |
|
cache: true |
|
|
|
- name: Cache node modules |
|
uses: actions/cache@v3 |
|
env: |
|
cache-name: cache-node-modules-hls-tests |
|
with: |
|
path: ~/.npm |
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/hls/package-lock.json') }} |
|
restore-keys: | |
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
${{ runner.os }}-build- |
|
${{ runner.os }}- |
|
|
|
- name: Run HLS tests |
|
uses: nick-fields/retry@v2 |
|
with: |
|
timeout_minutes: 10 |
|
max_attempts: 3 |
|
command: cd test/automated/hls && ./run.sh
|
|
|