Skip to content

Commit

Permalink
chore: add lint github action (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Feb 3, 2022
1 parent 0ca14f5 commit f6a5f38
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 73 deletions.
24 changes: 22 additions & 2 deletions .kokoro/lint/continuous.cfg → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 Google LLC
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,4 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Format: //devtools/kokoro/config/proto/build.proto
name: Lint
on: [pull_request]

jobs:
build:
name: Run lint
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install nox
run: pip install nox

- name: Checkout code
uses: actions/checkout@v2

- name: Run nox lint session
run: nox --sessions lint
41 changes: 0 additions & 41 deletions .kokoro/lint/common.cfg

This file was deleted.

15 changes: 0 additions & 15 deletions .kokoro/lint/periodic.cfg

This file was deleted.

15 changes: 0 additions & 15 deletions .kokoro/lint/presubmit.cfg

This file was deleted.

0 comments on commit f6a5f38

Please sign in to comment.