Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
0x000015 committed Jan 27, 2024
1 parent e9a253f commit abd431f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Main
run: go build -v ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module main

go 1.21.6
go 1.21

require (
github.com/abdfnx/gosh v0.4.0
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ type Config struct {
func ReadConfig() {
data, err := os.ReadFile("config.json")
if err != nil {
git
fmt.Printf("ReadConfig(): Failed to read config\nErr: %s\n=================\n", err)
}
json.Unmarshal(data, &config)
Expand Down

0 comments on commit abd431f

Please sign in to comment.