Skip to content

Commit

Permalink
feat(workflows): update lint-source & build-source to use container r…
Browse files Browse the repository at this point in the history
…un node:12-alpine
  • Loading branch information
phatpham9 committed Oct 22, 2020
1 parent b37c38a commit 6ae0cd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions workflows/build-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ on: [push]
jobs:
build-source:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]
container:
image: node:12-alpine
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Node.js ${{matrix.node-version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Build source
Expand Down
10 changes: 2 additions & 8 deletions workflows/lint-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ on: [push]
jobs:
lint-source:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]
container:
image: node:12-alpine
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Node.js ${{matrix.node-version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Check code style
Expand Down

0 comments on commit 6ae0cd2

Please sign in to comment.