Skip to content

Commit

Permalink
Merge pull request #362 from dkhunt27/updateActions
Browse files Browse the repository at this point in the history
updated action refs to latest
  • Loading branch information
dkhunt27 authored Apr 3, 2024
2 parents ecae468 + 66c8869 commit 054dafa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/samples/main-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
args: '--coverage --coverageReporters=json,json-summary'

- name: Archive Code Coverage Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ./coverage/**/coverage-summary.json
Expand Down
4 changes: 2 additions & 2 deletions .github/samples/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:

if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch Code
run: git fetch origin main

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Node.js 12.x
uses: actions/setup-node@v3
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand All @@ -47,7 +47,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
npm install
- run: |
Expand All @@ -19,13 +19,15 @@ jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
no-coverage-ran: false
coverage-folder: ./__tests__/data/coverage
coverage-folder: ./__tests__/data/coverage
coverage-base-folder: ./__tests__/data/coverage-base
gist-processing: true
gist-token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }}
gist-id: 14be704ddbfb786fbb50a292ee4d75f0
gist-id: 14be704ddbfb786fbb50a292ee4d75f0
hide-coverage-reports: false
hide-unchanged: false

0 comments on commit 054dafa

Please sign in to comment.