Skip to content

bump go version to 1.22 #608

bump go version to 1.22

bump go version to 1.22 #608

Workflow file for this run

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/[email protected]
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/[email protected]
with:
version: latest
- name: Run lint
run: lets lint