mirror of
https://github.com/bitwarden/server.git
synced 2025-02-26 03:31:34 +01:00
Move to using a shared workflow (#1874)
This commit is contained in:
parent
e4c1596882
commit
ecfdb8ca03
27
.github/workflows/linter.yml
vendored
27
.github/workflows/linter.yml
vendored
@ -1,27 +0,0 @@
|
||||
---
|
||||
name: Workflow Linter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: add-workflow-linter
|
||||
# branches-ignore:
|
||||
# - 'l10n_master'
|
||||
# - 'gh-pages'
|
||||
# workflow_dispatch:
|
||||
# inputs: {}
|
||||
|
||||
jobs:
|
||||
cloc:
|
||||
name: CLOC
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
|
||||
- name: Install cloc
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install cloc
|
||||
|
||||
- name: Print lines of code
|
||||
run: cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git
|
15
.github/workflows/workflow-linter.yml
vendored
15
.github/workflows/workflow-linter.yml
vendored
@ -5,18 +5,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/**
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: "Workflow Linter"
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
||||
- name: Checkout Version Branch
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Workflow Lint
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: bitwarden/gh-actions/lint-workflow@6f6ac44e93df2aaacfb46018dbeffffaad4a18e8
|
||||
call-workflow:
|
||||
uses: bitwarden/gh-actions/.github/workflows/workflow-linter.yml@master
|
||||
|
Loading…
Reference in New Issue
Block a user