Skip to content

add-github-actions

add-github-actions #1

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
- name: Run bats test
working-directory: ./
run: |
bats tests/test_scan_command.bats