-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
85 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,18 @@ | ||
name: cache | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: | | ||
case ${{ runner.os }} in | ||
macOS) | ||
echo "path=$HOME/Library/Caches/deno/deps" >> $GITHUB_OUTPUT;; | ||
*) | ||
echo "path=$HOME/.cache/deno" >> $GITHUB_OUTPUT;; | ||
esac | ||
id: cache | ||
shell: bash | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.cache.outputs.path }} | ||
restore-keys: ${{ runner.os }}-deno- | ||
key: ${{ runner.os }}-deno-${{ hashFiles('deno.jsonc')}} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: CI·markdown-lint | ||
|
||
on: | ||
pull_request: | ||
|
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,52 @@ | ||
name: CI·sync | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- import-map.json | ||
- src/hooks/app.sync.ts | ||
- src/hooks/useSync.ts | ||
- .github/workflows/ci.sync.yml | ||
|
||
concurrency: | ||
group: ${{ github.ref }}/sync | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# in situations without `git` we had a softlock problem that we're testing for here | ||
test-sync-lock: | ||
runs-on: ${{ matrix.platform.runner }} | ||
strategy: | ||
matrix: | ||
platform: | ||
- runner: ubuntu-latest | ||
- runner: macos-latest | ||
- runner: ubuntu-latest | ||
container: debian:buster-slim | ||
- runner: ubuntu-latest | ||
container: archlinux:latest | ||
container: ${{ matrix.platform.container }} | ||
name: test sync-lock (${{ matrix.platform.container || matrix.platform.runner }}) | ||
steps: | ||
# denoland/setup requires `unzip` to be installed | ||
# https://github.com/denoland/setup-deno/issues/41 | ||
- name: ensure `unzip` | ||
run: | | ||
case "${{ matrix.platform.container }}" in | ||
debian:buster-slim) | ||
apt-get update && apt-get install unzip;; | ||
archlinux:latest) | ||
pacman -Sy --noconfirm unzip;; | ||
esac | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/cache # avoids sporadic 500s from deno’s CDN | ||
- uses: denoland/setup-deno@v1 | ||
|
||
- run: deno task --config $GITHUB_WORKSPACE/deno.jsonc compile | ||
working-directory: /usr/local/bin | ||
|
||
- run: tea -S +gnu.org/wget wget -L tea.xyz/white-paper/ | tea -S +charm.sh/glow glow - | ||
|
||
# run again to test this work in the “update” scenario | ||
- run: tea -S +gnu.org/wget wget -L tea.xyz/white-paper/ | tea -S +charm.sh/glow glow - |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
on: | ||
release: | ||
types: | ||
- created | ||
- edited | ||
permissions: | ||
actions: write | ||
|