Skip to content

build(deps): bump tj-actions/changed-files from 14.1 to 41 in /.github/workflows #44

build(deps): bump tj-actions/changed-files from 14.1 to 41 in /.github/workflows

build(deps): bump tj-actions/changed-files from 14.1 to 41 in /.github/workflows #44

Workflow file for this run

name: ginkgo
on:
push:
tags-ignore:
- '**'
branches:
- master
pull_request:
jobs:
mod:
runs-on: ubuntu-latest
name: Check modules
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
go.*
**/*.go
- name: Verify Go Modules Setup
if: steps.changed-files.outputs.any_changed == 'true'
run: go mod verify
- run: go mod tidy && git diff --exit-code go.mod go.sum
if: steps.changed-files.outputs.any_changed == 'true'
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.18'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
go.*
**/*.go
- run: go vet ./...
- name: Install ginkgo
if: steps.changed-files.outputs.any_changed == 'true'
run: go get github.com/onsi/ginkgo/v2/ginkgo
- name: Print out Ginkgo version
if: steps.changed-files.outputs.any_changed == 'true'
run: go run github.com/onsi/ginkgo/v2/ginkgo version
- name: Launch tests
if: steps.changed-files.outputs.any_changed == 'true'
run: go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --race --trace -cover