Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: lint and commitlint in its own workflow #313

Merged
merged 4 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
pull_request:
branches:
- master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
jginsburgn marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/setup-node@v3
with:
node-version: 10
cache: npm
- run: npm ci
- run: npm run lint
- run: |
XhmikosR marked this conversation as resolved.
Show resolved Hide resolved
npm run commitlint -- \
--verbose \
--from `git merge-base origin/master $GITHUB_SHA`
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ jobs:
--verbose \
--from `git merge-base origin/master $GITHUB_SHA`
- run: npm run build
- run: npm run test
- run: npm run test:unit
- run: npm run test:e2e
- run: npm run test:integration
- run: npm run release
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
linux:
name: "Node ${{ matrix.node }} on Linux: Test and Lint"
name: "Node ${{ matrix.node }} on Linux: Test"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -27,16 +27,12 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: |
npm run commitlint -- \
--verbose \
--from `git merge-base origin/master $GITHUB_SHA`
- run: npm run build
- run: npm run test:unit
- run: npm run test:e2e
- run: npm run test:integration
windows:
name: "Node ${{ matrix.node }} on Windows: Test and Lint"
name: "Node ${{ matrix.node }} on Windows: Test"
runs-on: windows-latest
defaults:
run:
Expand Down
Loading