Separating build and lint tests

dev
sandeep 2021-06-16 16:07:19 +05:30
parent 1e3c5ba90d
commit 4e857cb951
2 changed files with 22 additions and 15 deletions

View File

@ -1,23 +1,11 @@
name: 🙏🏻 Build Test name: 🔨 Build Test
on: on:
push: push:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
jobs:
lint:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout 5m
working-directory: v2/
jobs:
build: build:
name: Test Builds name: Test Builds
runs-on: ubuntu-latest runs-on: ubuntu-latest

19
.github/workflows/lint-test.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: 🙏🏻 Lint Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout 5m
working-directory: v2/