mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-10-26 22:57:49 +03:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [~1.18, ^1]
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
GO111MODULE: "on"
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download Go modules
|
|
run: go mod download
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: Test
|
|
run: go test ./...
|
|
|
|
test-goos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
cache: true
|
|
# https://go.dev/doc/install/source#environment
|
|
- run: GOOS=darwin GOARCH=amd64 go test -c -v ./...
|
|
- run: GOOS=darwin GOARCH=arm64 go test -c -v ./...
|
|
- run: GOOS=linux GOARCH=386 go test -c -v ./...
|
|
- run: GOOS=linux GOARCH=amd64 go test -c -v ./...
|
|
- run: GOOS=linux GOARCH=arm go test -c -v ./...
|
|
- run: GOOS=linux GOARCH=arm64 go test -c -v ./...
|
|
- run: GOOS=windows GOARCH=amd64 go test -c -v ./...
|
|
- run: GOOS=windows GOARCH=386 go test -c -v ./...
|
|
- run: GOOS=windows GOARCH=arm go test -c -v ./...
|
|
- run: GOOS=windows GOARCH=arm64 go test -c -v ./...
|