Skip to content

Commit

Permalink
Merge pull request #3 from ronati/test-workflow
Browse files Browse the repository at this point in the history
ci(test): enable test action
  • Loading branch information
Nargonath authored Feb 25, 2024
2 parents 9cd847f + 5ad34d5 commit bfab879
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-22.04
steps:
- name: Fetch codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Install dependencies
run: npm i -D @semantic-release/git @semantic-release/changelog @commitlint/{cli,config-conventional} commitlint
- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

test:
runs-on: ubuntu-22.04
steps:
- name: Fetch codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
# TODO: Run Go tests
# - name: Test
# run:

0 comments on commit bfab879

Please sign in to comment.