Rationalise Filepaths #23
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: Test - Lint and Test | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
- "v*" | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
golangci: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Flowpipe repository | |
uses: actions/checkout@v3 | |
with: | |
path: flowpipe | |
- name: Checkout Flowpipe SDK Go repository | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.FLOWPIPE_GO_SDK_DEPLOY_PRIVATE_KEY }} | |
repository: turbot/flowpipe-sdk-go | |
path: flowpipe-sdk-go | |
- name: Checkout Pipe Fittings Components repository | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.PIPE_FITTINGS_DEPLOY_PRIVATE_KEY }} | |
repository: turbot/pipe-fittings | |
path: pipe-fittings | |
# this is required, check golangci-lint-action docs | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: false # setup-go v4 caches by default, do not change this parameter, check golangci-lint-action doc: https://github.com/golangci/golangci-lint-action/pull/704 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.1 | |
args: --timeout=15m | |
working-directory: flowpipe | |
# Install MailHog for SMTP mail testing | |
- name: Install MailHog | |
run: | | |
go install github.com/mailhog/MailHog@v1.0.1 | |
- name: Run tests | |
run: make test | |
working-directory: flowpipe |