This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: Run script on commit
|
||||
|
||||
on:
|
||||
push: {}
|
||||
|
||||
jobs:
|
||||
run-bash:
|
||||
runs-on: ubuntu-latest # use the runner label you have
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Make script executable
|
||||
run: |
|
||||
chmod +x ./scripts/test.sh
|
||||
|
||||
- name: Run script on current tree
|
||||
run: |
|
||||
./scripts/test.sh
|
||||
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.PrintLn("Some test yayyy")
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
apt install -y golang
|
||||
go run main.go
|
||||
|
||||
echo "Done running!"
|
||||
Reference in New Issue
Block a user