chore(docs): fix go pkg reference (#85) #166
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: Build and Test (JS) | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
merge_group: | |
paths: | |
- 'pkg/js/**' | |
- 'OpenFGAParser.g4' | |
- 'OpenFGALexer.g4' | |
pull_request: | |
paths: | |
- 'pkg/js/**' | |
- 'OpenFGAParser.g4' | |
- 'OpenFGALexer.g4' | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up node | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
cache-dependency-path: ./pkg/js/package-lock.json | |
- name: Audit dependencies | |
run: make audit-js | |
- name: Run Prettier | |
run: make format-js | |
- name: Run eslint | |
run: make lint-js | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@openfga' | |
always-auth: false | |
cache: 'npm' | |
cache-dependency-path: ./pkg/js/package-lock.json | |
- name: Build | |
run: make all-tests-js |