Skip to content

mtoy fork test #3

mtoy fork test #3 #43

Workflow file for this run

name: Test
on:
pull_request_target:
push:
branches:
- main
jobs:
test-all:
runs-on: ubuntu-latest
steps:
- name: Get User Permission
id: checkAccess
uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check User Permission
if: steps.checkAccess.outputs.require-result == 'false'
run: |
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit 1
- uses: actions/checkout@v4
with:
submodules: 'true'
- 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