Skip to main content

Build and test Go applications

This page explains how to FluentCI to build and test Go applications.

Before you begin

The instructions on this page assume that you are familiar with Go. In addition:

  • Have your Go project handy.

Using the Go Plugin

You can use FluentCI to build and test Go applications using the go plugin, no need to install Go on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Go applications:

fluentci run --wasm go test
fluentci run --wasm go build

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Go applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm go test
- name: build
run: fluentci run --wasm go build