Skip to content

Commit

Permalink
feat: init empty go project (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gornak40 authored Oct 5, 2023
1 parent 99cc07e commit eabd677
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Build
run: make build

- name: Test
run: make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

# Go workspace file
go.work
ejik
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
UTILS = $(shell ls ./cmd)

build:
$(foreach util, ${UTILS}, go build ./cmd/${util};)

clean:
rm ${UTILS}

test:
echo "No tests"
5 changes: 5 additions & 0 deletions cmd/ejik/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func main() {

}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/Gornak40/algolymp

go 1.20

0 comments on commit eabd677

Please sign in to comment.