mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 01:13:05 +00:00
37 lines
785 B
YAML
37 lines
785 B
YAML
---
|
|
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
golangci-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: latest
|
|
|
|
prettier-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Prettify code
|
|
uses: creyD/prettier_action@v4.0
|
|
with:
|
|
prettier_options: >-
|
|
--check **/*.{ts,js,md,yaml,yml,sass,css,scss,html}
|
|
only_changed: false
|
|
dry: true
|
|
|
|
proto-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: bufbuild/buf-setup-action@v0.7.0
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: "proto"
|