Update dependency deno to v2.1.5 #160
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
name: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-deno-with-cache | |
- id: fmt | |
run: deno fmt --check | |
- id: lint | |
run: deno lint | |
- name: Compile assets | |
run: | | |
deno task compile:linux-amd64 | |
deno task compile:darwin-amd64 | |
deno task compile:darwin-arm64 | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-deno-with-cache | |
- id: test | |
run: deno test -A | |
run_self: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-deno-with-cache | |
- name: Run self and output to job summary | |
run: | | |
echo '```' >> $GITHUB_STEP_SUMMARY | |
RUN_URL=$(gh run list -L 1 -w release --json url --jq .[].url) | |
deno run --allow-env --allow-net workflow-ls.ts \ | |
--token ${{ secrets.GITHUB_TOKEN }} \ | |
${RUN_URL}>> $GITHUB_STEP_SUMMARY | |
echo '```' >> $GITHUB_STEP_SUMMARY | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |