forked from PelicanPlatform/pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 912 Bytes
/
golangci-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: golangci-lint
on:
push:
tags:
- '*'
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# We embed the contents of src/out/* into the resulting binaries
# That particular directory should contain outputs generated by the
# npm build. However, to keep the runtime of the linter as fast as possible,
# instead of running `npm` here, we simply create a dummy empty file.
#
# If no dummy file exists, then the linters will flag the situation as
# an error.
- name: Generate placeholder files
id: generate-placeholder
run: |
mkdir -p origin_ui/src/out
touch origin_ui/src/out/placeholder
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest