goenv-init: Fix use of optional variables that should not crash the calling shell if unset #479
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: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
merge_group: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest"] | |
goenv_native_ext: ["", "1"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove golang | |
run: sudo rm -rf $(which go) | |
- name: Run Unit Tests | |
run: make test | |
env: | |
GOENV_NATIVE_EXT: ${{ matrix.goenv_native_ext }} |