Fix lint issues and add type check (#66) #65
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: Test | |
on: | |
pull_request_target: | |
push: | |
branches: | |
- main | |
jobs: | |
test-all: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Permission Check | |
uses: ./.github/actions/permission-check | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
username: ${{ github.triggering_actor }} | |
error_message: User lacks write permission, contact a Malloy team member to run. | |
- name: GCloud auth | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.BIGQUERY_KEY }}' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Install | |
run: npm ci --loglevel error | |
- name: Build and Test | |
run: | | |
npm run lint | |
npm run build | |
npm run test-silent | |
npm run test-silent-e2e |