Only upload playwright to S3 if we have the right credentials (#2074)

These credentials aren't available to non-tldraw contributors which was
breaking uploads.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
pull/2076/head
alex 2023-10-13 14:42:41 +01:00 zatwierdzone przez GitHub
rodzic 1f4df14d4f
commit 22955bb0ec
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 14 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,10 @@ jobs:
retention-days: 30
- uses: shallwefootball/s3-upload-action@master
if: always()
# only upload if we have AWS credentials:
env:
HAS_AWS_KEY: ${{ secrets.AWS_S3_SECRET_KEY && '1' || '' }}
if: always() && env.HAS_AWS_KEY == '1'
name: Upload S3
id: s3
with:

Wyświetl plik

@ -0,0 +1,10 @@
import test from '@playwright/test'
import { setup } from '../shared-e2e'
test.describe('ui', () => {
test.beforeEach(setup)
test('mobile style panel opens and closes when tapped', async ({ isMobile }) => {
test.skip(!isMobile, 'only run on mobile')
})
})