Skip to content

Update GitHub Actions workflow to trigger on push to main branch #6

Update GitHub Actions workflow to trigger on push to main branch

Update GitHub Actions workflow to trigger on push to main branch #6

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
container:
image: rust:latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose