Set up build build avoidance

This commit configures the CI to run specific parts of the CI when
relevant changes has been made.

This should help us not have to deal with the integration tests when we
do doc/admin changes.
This commit is contained in:
Kristoffer Dalby committed 2022-01-30 09:43:48 +00:00
1 parent d8ce440309
commit 1815040d98
3 files changed
+53 -12

No files matched your search

+26
View File
@@ -9,7 +9,18 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v14.1
with:
files: |
go.*
**/*.go
integration_test/
config-example.yaml
- name: golangci-lint
if: steps.changed-files.outputs.any_changed == 'true'
uses: golangci/golangci-lint-action@v2
with:
version: latest
@@ -25,6 +36,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v14.1
with:
files: |
**/*.md
**/*.yml
**/*.yaml
**/*.ts
**/*.js
**/*.sass
**/*.css
**/*.scss
**/*.html
- name: Prettify code
uses: creyD/prettier_action@v4.0
with: