New functions, tests, upgrade #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish xk6-mongo | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
name: Build xk6-mongo | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build ποΈ | |
id: build | |
uses: szkiba/xk6bundler@v0 | |
with: | |
platform: linux/amd64 windows/amd64 darwin/amd64 | |
with: | | |
github.com/GhMartingit/xk6-mongo@${{ github.ref_name }} | |
- name: Install Go π§βπ» | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' | |
- name: Generate CycloneDX SBOM artifacts π | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest | |
cyclonedx-gomod mod -json -licenses -output cyclonedx-xk6-mongo-${{ github.ref_name }}.json | |
- name: Upload CycloneDX SBOM artifact for go.mod πΎ | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cyclonedx-xk6-mongo-${{ github.ref_name }}.json | |
path: | |
cyclonedx-xk6-mongo-${{ github.ref_name }}.json | |
- name: Create Release π¦ | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/*.tar.gz |