Publish 3.1.0 on NPM.js #6
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: Dev branches push checks | |
on: | |
push: | |
branches: | |
- 3-dev | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-18.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: "12" | |
- uses: ./.github/actions/lint | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-18.04 | |
timeout-minutes: 30 | |
needs: [lint] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: "12" | |
- uses: ./.github/actions/unit-tests |