Skip to content

Commit

Permalink
chore: Add GitHub workflows to exercise mage.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFaer committed Feb 13, 2024
1 parent d0418fb commit e4405ae
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: api

on:
pull_request:
push:

jobs:
mage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Mage
uses: magefile/mage-action@v3
with:
version: latest
args: test
19 changes: 19 additions & 0 deletions .github/workflows/git.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: api

on:
pull_request:
push:

jobs:
mage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Mage
uses: magefile/mage-action@v3
with:
version: latest
args: build test
19 changes: 19 additions & 0 deletions .github/workflows/tmux-vcs-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: api

on:
pull_request:
push:

jobs:
mage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Mage
uses: magefile/mage-action@v3
with:
version: latest
args: build test
14 changes: 14 additions & 0 deletions api/magefiles/magefile.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//go:build mage
// +build mage

package main

import (
"github.com/magefile/mage/sh"
)

var Default = Test

func Test() error {
return sh.Run("go", "test", "./...")
}

0 comments on commit e4405ae

Please sign in to comment.