From 6ae0cd2ceeda7550e4ccccee802c320e9d90a65a Mon Sep 17 00:00:00 2001 From: phatpham9 Date: Thu, 22 Oct 2020 13:57:33 +0700 Subject: [PATCH] feat(workflows): update lint-source & build-source to use container run node:12-alpine --- workflows/build-source.yml | 10 ++-------- workflows/lint-source.yml | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/workflows/build-source.yml b/workflows/build-source.yml index 1f44b0e..2033631 100644 --- a/workflows/build-source.yml +++ b/workflows/build-source.yml @@ -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 diff --git a/workflows/lint-source.yml b/workflows/lint-source.yml index 18ec75a..7e042cd 100644 --- a/workflows/lint-source.yml +++ b/workflows/lint-source.yml @@ -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