-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* basic-demo poc * 2nd aquarium demo POC * baking-soft-shadows * maxDiffPixelRatio * rn * doc * monkeypatch cheesyCanvas() vite plugin * cleaning things * deterministic-random * rn the vite plugin to monkey * deterministic * final CheesyCanvas * do not retest in main * doc * shooting a 0 * cleaning comments * updating snapshots * playwright:snapshot-ready event * unified ci * longer timeout * doc
- Loading branch information
Showing
22 changed files
with
656 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build-job: | ||
runs-on: ubuntu-latest | ||
|
||
# Cancel multiple runs when pushing to main | ||
concurrency: | ||
group: ${{ github.event_name != 'pull_request' && 'group-pushmain' || github.run_id }} | ||
cancel-in-progress: ${{ github.event_name != 'pull_request' }} | ||
|
||
container: | ||
image: ghcr.io/pmndrs/playwright:main | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
# Build | ||
- uses: actions/checkout@v4 | ||
- uses: actions/configure-pages@v5 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
- run: npm ci | ||
- uses: rharkor/[email protected] | ||
- run: npm run build | ||
|
||
# Tests (only for PRs) | ||
- run: npm test | ||
if: github.event_name == 'pull_request' | ||
|
||
# Upload artifact (only for pushes on main) | ||
- uses: actions/upload-pages-artifact@v3 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
path: ./out/examples | ||
|
||
deploy-job: | ||
# only for pushes on main | ||
if: github.event_name != 'pull_request' | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build-job | ||
steps: | ||
- id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
DST="out/examples" | ||
|
||
for app in apps/*; do | ||
if [ -d "$app/dist" ]; then | ||
app_name=$(basename "$app") | ||
mkdir -p "$DST/$app_name" | ||
cp -r "$app/dist/"* "$DST/$app_name/" | ||
|
||
echo "Copied $app/dist to $DST/$app_name" | ||
fi | ||
done |
Oops, something went wrong.