Skip to content

Commit

Permalink
fix: cast days_old parameter to number
Browse files Browse the repository at this point in the history
  • Loading branch information
igorjs committed May 17, 2022
1 parent b54e743 commit 0454e0d
Show file tree
Hide file tree
Showing 10 changed files with 2,328 additions and 1,208 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
steps:
- uses: actions/checkout@v2

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

- name: Install dependencies and Rebuild the dist/ directory
run: npm ci
run: |
npm ci
npm run build --if-present
- name: Compare the expected and actual dist/ directories
run: |
Expand All @@ -45,4 +47,4 @@ jobs:
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/
path: dist/
2 changes: 1 addition & 1 deletion .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
clean-logs:
runs-on: ubuntu-latest
steps:
- uses: igorjs/github-clean-workflow-action@v1.0.0
- uses: igorjs/github-clean-workflow-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm test
- uses: actions/checkout@v2
- name: Use Node.js 17
uses: actions/setup-node@v3
with:
node-version: 17
- name: Run Tests
run: |
npm ci
npm test --if-present
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ outputs:

runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/index.js'
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 0454e0d

Please sign in to comment.