mirror of
https://github.com/usememos/memos.git
synced 2024-12-25 12:23:09 +03:00
chore: update github actions (#2050)
This commit is contained in:
parent
d0cfb62f35
commit
9cedb3cc6c
2
.github/workflows/frontend-tests.yml
vendored
2
.github/workflows/frontend-tests.yml
vendored
@ -5,6 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- "release/*.*.*"
|
- "release/*.*.*"
|
||||||
|
paths:
|
||||||
|
- "web/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eslint-checks:
|
eslint-checks:
|
||||||
|
30
.github/workflows/proto-linter.yml
vendored
Normal file
30
.github/workflows/proto-linter.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Proto linter
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- "release/*.*.*"
|
||||||
|
paths:
|
||||||
|
- "proto/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-protos:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup buf
|
||||||
|
uses: bufbuild/buf-setup-action@v1
|
||||||
|
- name: buf lint
|
||||||
|
uses: bufbuild/buf-lint-action@v1
|
||||||
|
with:
|
||||||
|
input: "proto"
|
||||||
|
- name: buf format
|
||||||
|
run: |
|
||||||
|
if [[ $(buf format -d) ]]; then
|
||||||
|
echo "Run 'buf format -w'"
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user