Skip to content

Commit

Permalink
Added testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhouse committed Mar 2, 2024
1 parent ca363a8 commit b358e41
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
jobs:

build:

name: Build
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -40,11 +42,13 @@ jobs:
path: "./target/doc"

deploy:

name: Deploy
needs: build

permissions:
pages: write # to deploy
id-token: write # to verify the deployment originates from an appropriate source
pages: write
id-token: write

environment:
name: github-pages
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Testing

on:
push:
branches: [development]
pull_request:
branches: [development]

jobs:

test:

name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
run: rustup update --no-self-update stable

- name: Build library
run: cargo build --verbose

- name: Test library
run: cargo test --verbose

merge:

name: Merge
needs: [ test ]
runs-on: ubuntu-latest

steps:

- name: Checkout repository
uses: actions/checkout@v4

- name: Merge branch
uses: devmasx/merge-branch@1.4.0
with:
type: now
target_branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b358e41

Please sign in to comment.