Skip to content

Pilou97 is testing out GitHub Actions #3

Pilou97 is testing out GitHub Actions

Pilou97 is testing out GitHub Actions #3

Workflow file for this run

name: Merge Request
run-name: ${{ github.actor }} is testing out GitHub Actions
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run formatter
run: cargo fmt
- name: Run linter
run: cargo clippy -- --deny warnings
- name: Run tests
run: cargo test
- name: Build the project
run: cargo build --release
publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merged && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- uses: actions/checkout@v3
- name: Build the project
run: cargo build --release
- name: Publish the project
run: echo publishing the project