fix [#263] - --init creates config if one does not exist #614
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
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- assigned | |
- opened | |
- synchronize | |
- reopened | |
name: Test | |
jobs: | |
test-unit: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: brew install bash | |
- name: Setup go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: go install gotest.tools/gotestsum@latest | |
- name: Test unit | |
env: | |
LETS_CONFIG_DIR: .. | |
run: gotestsum --format testname -- ./... -coverprofile=coverage.out | |
test-bats: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Lets | |
uses: lets-cli/lets-action@v1.1 | |
with: | |
version: latest | |
- name: Test bats | |
run: timeout 120 lets test-bats | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Lets | |
uses: lets-cli/lets-action@v1.1 | |
with: | |
version: latest | |
- name: Run lint | |
run: lets lint |