Skip to content

Commit

Permalink
added ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
star-gazer111 authored Aug 18, 2024
1 parent 0b412db commit e364864
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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: ci

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

jobs:

build:
runs-on: self-hosted
strategy:
matrix:
go-version: ['1.20', '1.21.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Install dependencies
run: go get .

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

- name: Test
run: go test -v ./...

0 comments on commit e364864

Please sign in to comment.