Skip to content

chore(client): remove App Groups capability for app transfer #2750

chore(client): remove App Groups capability for app transfer

chore(client): remove App Groups capability for app transfer #2750

Workflow file for this run

# Copyright 2024 The Outline Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Lint
concurrency:
group: ${{ github.head_ref || github.ref }}-lint
cancel-in-progress: true
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: ./package-lock.json
- name: Install NPM Dependencies
run: npm ci
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@0b975f61488402a699abcebd6a1e25924cf85218
with:
files: |
**/*.ts
**/*.js
**/*.cjs
**/*.mjs
- name: Set base and head commits
id: commits
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
base_commit="${{ github.event.pull_request.base.sha }}"
else
base_commit="${{ github.event.before }}"
# Handle edge cases where "before" is empty or all-zero (e.g. first push).
if [[ -z "$base_commit" || "$base_commit" =~ ^0+$ ]]; then
base_commit="$(git rev-list --max-parents=0 HEAD)"
fi
fi
echo "base_commit=$base_commit" >> "$GITHUB_OUTPUT"
echo "head_commit=${{ github.sha }}" >> "$GITHUB_OUTPUT"
- name: Lint changed files
if: ${{ steps.changed-files.outputs.modified_files_count > 0 || steps.changed-files.outputs.added_file_count > 0 }}
run: |
npx eslint -f json -o lint-results.json \
${{ steps.changed-files.outputs.modified_files }} \
${{ steps.changed-files.outputs.added_files }} || true
- name: Fail on issues in changed lines
if: ${{ steps.changed-files.outputs.modified_files_count > 0 || steps.changed-files.outputs.added_file_count > 0 }}
env:
BASE_COMMIT: ${{ steps.commits.outputs.base_commit }}
HEAD_COMMIT: ${{ steps.commits.outputs.head_commit }}
MODIFIED_FILES: ${{ steps.changed-files.outputs.modified_files }}
ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
LINT_RESULTS_PATH: lint-results.json
run: node .github/scripts/fail_on_changed_line_lint.mjs