Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
name: Build & Test
on:
pull_request:
branches:
- master
- develop
jobs:
build-publish:
runs-on: ubuntu-latest
env:
ARTIFACTORY_AUTH_TOKEN: ${{secrets.ARTIFACTORY_AUTH_TOKEN}}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup NodeJS 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: |
npm install -g yarn
yarn install
env:
ARTIFACTORY_AUTH_TOKEN: ${{secrets.ARTIFACTORY_AUTH_TOKEN}}
- name: Test
run: |
yarn lint
yarn test
- name: Build
run: yarn build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.