Skip to content

Commit

Permalink
ci: init, linux, windows, mocOS, conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-herlemont committed May 15, 2023
1 parent e2195c3 commit bd9d60d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
common:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
toolchain: [stable]
feature: [ no_feature , "eyre_support" ]
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Setup Feature Args
shell: bash
run: |
if [[ "${{ matrix.feature }}" == "no_feature" ]]; then
echo "FEATURE_ARGS=" >> $GITHUB_ENV
else
echo "FEATURE_ARGS=-F ${{ matrix.feature }}" >> $GITHUB_ENV
fi
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ env.FEATURE_ARGS }}
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ env.FEATURE_ARGS }}
13 changes: 13 additions & 0 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Conventional Commits

on:
pull_request:
branches: [ main ]

jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webiny/action-conventional-commits@v1.1.0

0 comments on commit bd9d60d

Please sign in to comment.