Skip to content

Commit

Permalink
CI workflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmit0920 committed Jul 14, 2024
1 parent 969debb commit d20c7d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: go mod tidy

- name: Build
run: go build -v ./...

- name: Run tests
run: go test -v ./...
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
greet.exe
sample_files_organized/
ToDo.txt

0 comments on commit d20c7d7

Please sign in to comment.