Development #10
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: Tests | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
FA_NPM_TOKEN: ${{ secrets.FA_NPM_TOKEN }} | |
PSYCHEDELIC_ORG_NPM_PKG_TOKEN: ${{ secrets.PSYCHEDELIC_ORG_NPM_PKG_TOKEN }} | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Grant packages read | |
run: | | |
echo "//npm.pkg.github.com/:_authToken=$PSYCHEDELIC_ORG_NPM_PKG_TOKEN" >> .npmrc | |
- name: Install Dependencies | |
run: yarn | |
- name: Audit | |
run: yarn audit --groups dependencies | |
- name: Run Prettier | |
run: yarn format |