Skip to content

Update ci

Update ci #56

Workflow file for this run

name: ci
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.22'
- uses: gacts/install-hurl@v1
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Run Hurl Tests
run: ./test/exec.sh
- uses: thatisuday/go-cross-build@v1
with:
platforms: 'linux/amd64, darwin/amd64, windows/amd64'
package: 'cmd'
name: 'xtemplate'
compress: 'true'
dest: 'dist'
- uses: actions/upload-artifact@v3
with:
path: dist/*
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: 'dist/*'