Skip to content

Commit

Permalink
ci: add cairo and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
j1mbo64 authored and j1mbo64 committed Aug 28, 2024
1 parent 722059a commit 35e651e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cairo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: cairo

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions: read-all

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.7.0"
- run: scarb fmt --check
- run: scarb build
- run: scarb test
21 changes: 21 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: commitlint

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions: read-all

jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: npm install --save-dev @commitlint/{cli,config-conventional}
- run: |
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
- run: npx commitlint --from HEAD~1 --to HEAD --verbose

0 comments on commit 35e651e

Please sign in to comment.