Skip to content

Commit

Permalink
ci: fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Oct 26, 2024
1 parent 24284c0 commit 1fe0d8b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ignorePatterns:
- '**/dist/.*'
- '**/coverage/.*'
- '*.json'
- '*.yml'
- '*.yaml'
- '*.md'

parser: '@typescript-eslint/parser'

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ on:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
run: npm ci

- name: Build dist/ Directory
run: npm run bundle
run: npm run build

# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
Expand All @@ -54,7 +54,7 @@ jobs:
git diff --ignore-space-at-eol --text dist/
exit 1
fi
# If `dist/` was different than expected, upload the expected version as a
# workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
dist/
node_modules/
coverage/

*.md
*.yml
*.yaml
18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"eslint-plugin-jest": "^28.8.3"
"eslint-plugin-jest": "^28.8.3",
"prettier": "^3.3.3"
}
}

0 comments on commit 1fe0d8b

Please sign in to comment.