Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

ci: create initial CI/CD pipeline #3

ci: create initial CI/CD pipeline

ci: create initial CI/CD pipeline #3

Workflow file for this run

name: Main
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21.5"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup golang
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -v -json ./... > test_results_${{ matrix.go-version }}.json
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test_results_${{ matrix.go-version }}
path: test_results_${{ matrix.go-version }}.json