Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# GitHub Actions workflow for go-tetris
name: Go

on:
push:
branches:
- "master"
- "feature/**"
- "fix/**"
pull_request:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24.1' # Updated to Go 1.24.1

- name: Verify go.mod and go.sum
run: go mod tidy && git diff --exit-code go.mod go.sum

- name: Run Linter
uses: golangci/golangci-lint-action@v3
with:
version: latest

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

deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Production
run: echo "Deploying application..."
Loading