Skip to content

Commit

Permalink
github/workflows: Update tests workflow
Browse files Browse the repository at this point in the history
Update target branch (master -> main).
  • Loading branch information
MusicDin committed Mar 9, 2024
1 parent 21348fc commit 749fd05
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/go-test.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests
run-name: "${{ github.ref_name }}: Tests"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Go tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
go:
- 1.18
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install virtualenv
run: |
pip install --upgrade virtualenv
- name: Run Go Tests
run: |
go test ./... -v

0 comments on commit 749fd05

Please sign in to comment.