From 3889eca5d8cbe1805f29c72eaffb2b3f1512144f Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 2 Jan 2022 14:30:01 -0500 Subject: [PATCH 1/4] Added caching --- action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/action.yml b/action.yml index 4b30583..f7f56b4 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,17 @@ inputs: runs: using: 'composite' steps: + - name: Get npm cache directory + id: remark-npm-cache-dir + run: | + echo "::set-output name=dir::$(npm config get cache)" + - uses: actions/cache@v2 + id: remark-npm-cache + with: + path: ${{ steps.remark-npm-cache-dir.outputs.dir }} + key: ${{ runner.os }}-remark-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-remark-node- - run: | bash $GITHUB_ACTION_PATH/entrypoint.sh id: remark From 573c6d98f9376fcbc79d394fa9c473157f6174ca Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 2 Jan 2022 14:33:04 -0500 Subject: [PATCH 2/4] Update test.yml --- .github/workflows/test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5da8b5..d84e33a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,14 +9,26 @@ on: - main jobs: - test: + shellcheck: + name: Shellcheck runs-on: ubuntu-latest - name: Test remark steps: - name: Checkout uses: actions/checkout@v2 - name: shellcheck uses: reviewdog/action-shellcheck@v1 + + test: + name: Test remark + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022, windows-2016] + + steps: + - name: Checkout + uses: actions/checkout@v2 - name: Run test uses: ./ - name: Verify Changed files From b4059a46e55c8d715343c5059a9417b1e0310766 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 2 Jan 2022 14:34:41 -0500 Subject: [PATCH 3/4] Update action.yml --- action.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/action.yml b/action.yml index f7f56b4..4b30583 100644 --- a/action.yml +++ b/action.yml @@ -22,17 +22,6 @@ inputs: runs: using: 'composite' steps: - - name: Get npm cache directory - id: remark-npm-cache-dir - run: | - echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 - id: remark-npm-cache - with: - path: ${{ steps.remark-npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-remark-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-remark-node- - run: | bash $GITHUB_ACTION_PATH/entrypoint.sh id: remark From efd0618e4d2655a507f1c89cf12f35efc9846fe9 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 2 Jan 2022 14:35:13 -0500 Subject: [PATCH 4/4] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d84e33a..6aeae21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: jobs: shellcheck: - name: Shellcheck + name: shellcheck runs-on: ubuntu-latest steps: - name: Checkout