Eliminated jsonlines dependency in favour of built in types #154
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: Verify | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- run: deno fmt --check | |
- run: deno lint | |
- run: deno test --allow-net --allow-read --allow-write | |
diff: | |
name: Generate Job Matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.diff.outputs.all_modified_files }} | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Get changed files | |
id: diff | |
uses: tj-actions/changed-files@v45 | |
with: | |
json: true | |
dir_names: true | |
- run: echo "Changes detected in ${{ steps.diff.outputs.all_modified_files }}" | |
jsr: | |
if: needs.diff.outputs.matrix != '[]' | |
name: Verify ${{ matrix }} is publishable to JSR | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
needs: [diff] | |
strategy: | |
fail-fast: false | |
max-parallel: 6 | |
matrix: ${{needs.diff.outputs.matrix}} | |
steps: | |
- uses: actions/[email protected] | |
- uses: denoland/setup-deno@v2 | |
- run: deno publish --dry-run | |
working-directory: ${{ matrix.workspace }} |