Skip to content

Commit

Permalink
Update libs and how checks are performed
Browse files Browse the repository at this point in the history
  • Loading branch information
milespetrov committed Mar 1, 2024
1 parent 4887f1e commit 639c439
Show file tree
Hide file tree
Showing 17 changed files with 153,026 additions and 32,441 deletions.
61 changes: 0 additions & 61 deletions .eslintrc.json

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install npm dependencies
run: yarn
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- uses: milespetrov/status-checks@main
with:
ts-errors: 0
lint-command: 'npm run lint:check'
gh-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid"
}
10 changes: 5 additions & 5 deletions __tests__/ts-check.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {ArtifactClient} from '@actions/artifact'
import {getExecOutput} from '@actions/exec'
import {jest} from '@jest/globals'
import type {ActionInterface} from '../src/constants'
import type { ArtifactClient } from '@actions/artifact'
import { getExecOutput } from '@actions/exec'
import { jest } from '@jest/globals'
import type { ActionInterface } from '../src/constants'
jest.setTimeout(50000)

const context = {
Expand Down Expand Up @@ -51,7 +51,7 @@ jest.unstable_mockModule('../src/lib.ts', () => {
...originalLib,
findAndExtractArtifact: jest.fn((action: ActionInterface) => {
console.error(action)
return {errors: action._tests?.originErrors || 0, files: 0}
return { errors: action._tests?.originErrors || 0, files: 0 }
})
}
})
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Run status checks!'
description: 'This action will run eslint, prettier, and TS checks'
author: 'Miles Petrov <[email protected]>'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'git-commit'
Expand Down
Loading

0 comments on commit 639c439

Please sign in to comment.