Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyEckstein committed Feb 16, 2021
1 parent e8055be commit ff8c12f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Publish Module
on:
push:
branches:
- master
- main
jobs:
install-and-check:
name: Install & Check
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
check-latest: true
node-version: '12'
- name: Install
run: npm ci --loglevel=error
env:
Expand All @@ -28,10 +31,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
check-latest: true
node-version: '12'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm ci --loglevel=error
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ on:
branches:
- develop
jobs:
test:
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
check:
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [8, 10, 12, 13]
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [10, 12, 14, 15]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Clone repository
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node_version: ${{ matrix.node_version }}.x
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install
run: npm ci --loglevel=error
env:
Expand All @@ -35,3 +36,4 @@ jobs:
run: npx codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

0 comments on commit ff8c12f

Please sign in to comment.