chore: release v0.7.0-alpha.3 #156
Workflow file for this run
This file contains hidden or 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 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.6.x | |
| cache: true | |
| - name: Check formatting | |
| run: deno fmt --check | |
| - name: Lint | |
| run: deno lint | |
| - name: Check lockfile is up to date | |
| run: | | |
| deno install | |
| git diff --exit-code deno.lock || (echo "::error::deno.lock is out of date. Run 'deno install' and commit the changes." && exit 1) | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.6.x | |
| cache: true | |
| - name: Type check | |
| run: deno check src/ | |
| - name: Run tests | |
| run: deno test -A | |
| test-npm-build: | |
| name: Test npm Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.6.x | |
| cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Build npm packages (linux-x64 only) | |
| run: deno run -A scripts/build_npm.ts --platform linux-x64 | |
| - name: Test CLI binary | |
| run: | | |
| ./npm/pls-linux-x64/bin/pls --version | |
| ./npm/pls-linux-x64/bin/pls --help | |
| - name: Test npm install | |
| run: | | |
| cd /tmp | |
| npm init -y | |
| npm install ${{ github.workspace }}/npm/pls ${{ github.workspace }}/npm/pls-linux-x64 | |
| npx pls --version |