Skip to content

on merge is same as on push #15

on merge is same as on push

on merge is same as on push #15

Workflow file for this run

name: Rust Build and Test
on:
pull_request:
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' || '' }}