Skip to content

Commit

Permalink
add golang github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencheng committed Aug 4, 2024
1 parent 9167842 commit 4ae723c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Go

on:
push:
branches: [ "2024-update" ]
pull_request:
branches: [ "2024-update" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Build
run: go version
7 changes: 7 additions & 0 deletions up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,3 +1153,10 @@ tasks:
do: |
curl --silent 'https://api.github.com/repos/upcmd/up' -H 'Accept: application/vnd.github.preview' | grep stargazers_count
reg: result


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

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

0 comments on commit 4ae723c

Please sign in to comment.