Skip to content

Commit

Permalink
Merge pull request #592 from oliver-sanders/actions
Browse files Browse the repository at this point in the history
pin node version in github actions
  • Loading branch information
kinow committed Feb 11, 2021
2 parents a5c7750 + 9eadbc5 commit 6f1dfcb
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions .github/workflows/main.yml
Expand Up @@ -5,36 +5,38 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn install
- name: Lint
run: |
yarn run lint --no-fix
DEBUG="lockfile-lint,validate-host-manager" npx lockfile-lint --path yarn.lock --validate-https --allowed-hosts npm --allowed-hosts registry.yarnpkg.com
- name: Test
run: |
yarn run coverage:unit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
flags: unittests
fail_ci_if_error: false
- name: Build
run: yarn run build
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn install
- name: Lint
run: |
yarn run lint --no-fix
DEBUG="lockfile-lint,validate-host-manager" npx lockfile-lint --path yarn.lock --validate-https --allowed-hosts npm --allowed-hosts registry.yarnpkg.com
- name: Test
run: |
yarn run coverage:unit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
flags: unittests
fail_ci_if_error: false
- name: Build
run: yarn run build

cypress-run:
#runs-on: ubuntu-16.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -48,6 +50,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: e2e
uses: cypress-io/github-action@v2
with:
Expand Down

0 comments on commit 6f1dfcb

Please sign in to comment.