Created
November 29, 2020 08:46
-
-
Save YonatanKra/15445e99580266553ed68ad37d7de5dc to your computer and use it in GitHub Desktop.
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: 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