-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 712 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (26 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.2' # Updated to match VirtLang-Go requirements
- name: Update dependencies
run: go mod tidy
- name: Build
run: |
# Set development version for CI builds
VERSION="dev-$(git rev-parse --short HEAD)"
go build -v -ldflags="-X main.Version=$VERSION" ./...
- name: Test
run: go test -v ./...