feat: New linter-only job.
Moved out of main job.
@@ -16,6 +16,32 @@ on:
- cron: '0 0 * * *'
jobs:
+ linter:
+ runs-on: self-hosted
+ if: contains(["kkaempf", "jimmykarily", "andreas-kupries", "rohitsakala", "svollath", "thardeck"], "${{ github.actor }}")
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Get All Git Tags
+ run: git fetch --force --prune --unshallow --tags
+ - name: Setup Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: '^1.13.7'
+ - name: Cache Tools
+ uses: actions/cache@v2
+ with:
+ path: ${{ github.workspace }}/tools
+ key: ${{ runner.os }}-tools
+ - name: Install Tools
+ run: make tools-install
+ - name: Add Tools to PATH
+ run: |
+ echo "`pwd`/output/bin" >> $GITHUB_PATH
+ - name: Lint Epinio
+ run: make lint
+
build:
runs-on: self-hosted
if: contains(["kkaempf", "jimmykarily", "andreas-kupries", "rohitsakala", "svollath", "thardeck"], "${{ github.actor }}")
@@ -46,8 +72,6 @@ jobs:
- name: Add Tools to PATH
run: |
echo "`pwd`/output/bin" >> $GITHUB_PATH
- - name: lint Epinio
- run: make lint
- name: Run unit tests
run: make test
- name: Acceptance tests
