Skip to content

Update dependency deno to v2.0.4 #146

Update dependency deno to v2.0.4

Update dependency deno to v2.0.4 #146

Workflow file for this run

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 }}