chore(ci): update node and deno version #2620
Workflow file for this run
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: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
name: Lint source deno-${{ matrix.deno_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
deno_version: [v1.x, v2.x] | |
env: | |
RUST_BACKTRACE: full | |
DENO_FUTURE: 1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno_version }} | |
- name: Setup shellcheck | |
run: > | |
wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz && | |
tar -xvf shellcheck-v0.7.1.linux.x86_64.tar.xz && | |
mv shellcheck-v0.7.1/shellcheck . && | |
rm -rf shellcheck-v0.7.1 && | |
chmod +x shellcheck && | |
./shellcheck --version | |
- name: Run linter | |
run: deno task lint | |
- name: Run bash check | |
run: ./shellcheck --shell bash <(deno run -r ./examples/command/shell-completions.ts completions bash) | |
- name: Run zsh check | |
run: ./shellcheck --shell bash <(deno run -r ./examples/command/shell-completions.ts completions zsh) | |
- name: Type-check | |
if: matrix.deno_version == 'rc' | |
run: deno task check | |
- name: Type-check | |
if: matrix.deno_version == 'v1.x' | |
run: deno task check:deno-v1 |