Skip to content

Commit

Permalink
ci(test): enable test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargonath committed Feb 25, 2024
1 parent 9cd847f commit 5ad34d5
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 5ad34d5

Please sign in to comment.