Skip to content

Commit

Permalink
chore: Add additional CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkeaton committed Dec 23, 2024
1 parent 8e33e26 commit 2daf987
Show file tree
Hide file tree
Showing 4 changed files with 1,695 additions and 1,344 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,46 @@ on:
- main
pull_request:
jobs:
test_action:
name: Test GitHub Action
check_build:
name: Check build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Test action
id: test-action
uses: ./
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: git diff --exit-code --quiet ./dist
check_formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm prettier --check "**/*.{json,md,mjs,mts}"
check_types:
name: Check types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm tsc --noEmit
test:
name: Test action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
"dist"
],
"license": "BSD-3-Clause",
"packageManager": "pnpm@9.15.1",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/kirkeaton/action-publint.git"
},
"scripts": {
"build": "pnpm clean && ./build.mjs",
"clean": "rm -rf dist"
Expand Down
Loading

0 comments on commit 2daf987

Please sign in to comment.