Skip to content

FRON-9073 Update dependencies #160

FRON-9073 Update dependencies

FRON-9073 Update dependencies #160

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout (pull_request)
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout (push)
if: github.event_name == 'push'
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm test -- --ci --coverage
- run: npm run lint
- name: Set ENV for codeclimate (pull_request)
run: |
echo "::set-env name=GIT_BRANCH::${{ github.head_ref }}"
echo "::set-env name=GIT_COMMIT_SHA::$(git rev-parse HEAD)"
if: github.event_name == 'pull_request'
- name: Set ENV for codeclimate (push)
run: |
echo "::set-env name=GIT_BRANCH::${GITHUB_REF##*/}"
echo "::set-env name=GIT_COMMIT_SHA::$GITHUB_SHA"
if: github.event_name == 'push'
- name: Code Climate Test Reporter
uses: aktions/codeclimate-test-reporter@v1
with:
codeclimate-test-reporter-id: e603a31c2988a01bae194f33de60d6f6f17b68cc8f36e5479f987e34d2186988
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build