Xkonti / govec

Go library providing 2D and 3D vector operations
MIT License
6 stars 7 forks source link

Add GitHub Actions workflow for testing on every PR #41

Closed Xkonti closed 1 year ago

Xkonti commented 1 year ago

Tests should be ran on every Pull Request. This will allow for:

Tests should be ran only for Pull Requests and not for merges to main branch as PRs are the only way to commit to main.

This could be a starting point for .github/workflows/pr-check.yml file:

name: Test PR

on:
  pull_request:
    branches:
      - main

jobs:
  check-pr:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up Go
        uses: ???

      - name: Run tests
        uses: ???
Pr0-C0der commented 1 year ago

Hey, I can do this. Can you please assign this to me? @Xkonti

Xkonti commented 1 year ago

Sure thing!