Skip to content

added triggers on merge, on pull request and on push on main #14

added triggers on merge, on pull request and on push on main

added triggers on merge, on pull request and on push on main #14

Workflow file for this run

name: Rust Build and Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

`merge` is not a valid event name
on:
pull_request:
branches: [ main ]
merge:
branches: [ main ]
push:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run tests
run: cargo test --release --verbose --lib
- name: Run Ignored Test
run: cargo test --release --verbose -- --ignored
- name: Build
run: cargo build --verbose --release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: snip-${{ matrix.os }}
path: |
./target/release/rsnippet${{ matrix.os == 'windows-latest' && '.exe' || '' }}