Skip to content

[IN-31] ci: add needed actions #24

[IN-31] ci: add needed actions

[IN-31] ci: add needed actions #24

Workflow file for this run

name: run-tests
on:
pull_request:
branches:
- "master"
jobs:
run-tests:
runs-on: ubuntu-latest
env:
API_KEY: ${{ secrets.API_KEY }}
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
# You cannot read packages from other private repos with GITHUB_TOKEN
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc
- run: echo "always-auth=true" >> .npmrc
- name: Lint & Test
run: yarn && yarn run test