This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
feat(common) QR scaner authorization via email #2
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: "Run tests" | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: [self-hosted, cere-io-large] | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v1" | |
- name: Read .nvmrc | |
id: nvmrc | |
run: echo "##[set-output name=NODE_VERSION;]$(cat .nvmrc)" | |
- name: "Set up NodeJSs" | |
uses: "actions/setup-node@v1" | |
with: | |
node-version: "${{ steps.nvmrc.outputs.NODE_VERSION }}" | |
- name: "Install node modules" | |
run: npm ci | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN_READ}} | |
- name: "Check ts build" | |
run: npm run build | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN_READ}} | |
- name: "Check lint" | |
run: npm run lint | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |