Skip to content

Commit

Permalink
feat: Init the project
Browse files Browse the repository at this point in the history
  • Loading branch information
dandxy89 committed Nov 10, 2023
1 parent 7a06ed6 commit e916cb5
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly

- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
36 changes: 36 additions & 0 deletions .github/workflows/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "**.rs"
- "**.pest"

name: Cargo Test

jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the project
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: "${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}"
- uses: actions/cache@v3
with:
path: ~/.cargo/git
key: "${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}"
- uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# Run cargo test
- uses: actions-rs/cargo@v1
with:
command: test
35 changes: 35 additions & 0 deletions .github/workflows/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- "main"

name: Release Curation

permissions:
pull-requests: write
contents: write

jobs:
release-please:
runs-on: ubuntu-latest
if: "${{ !startsWith(github.event.head_commit.message, 'chore(main): release') }}"
steps:
- uses: google-github-actions/release-please-action@v3
with:
pull-request-header: New Release
release-type: rust
package-name: release-please-action
changelog-types: >
[
{ "type": "build", "section": "Build System", "hidden": false },
{ "type": "ci", "section": "Continuous Integration", "hidden": false },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
{ "type": "revert", "section": "Reverts", "hidden": false },
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": false }
]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit e916cb5

Please sign in to comment.