EO: Add filters and persistent pagination for certificates #19246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Energinet DataHub A/S | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License2"); | |
# 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: License Check CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
BASE_BRANCH: ${{ github.event.pull_request.base.ref }} | |
is-main-branch: ${{ github.ref == 'refs/heads/main' }} | |
is-pull-request: ${{ github.event_name == 'pull_request' }} | |
# keep in sync with "engines.bun" and "volta.bun" in "package.json" | |
BUN_VERSION: 1.1.26 | |
# Nx Cloud | |
NX_BRANCH: ${{ github.event.number }} | |
NX_RUN_GROUP: ${{ github.run_id }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
workflow_dispatch: {} | |
jobs: | |
add-license: | |
name: Add license | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Bun setup | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: ${{ env.BUN_VERSION }} | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Add license to all projects | |
run: bun run nx run tools:add-license | |
- name: Commit licensed files | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add -A || cd . | |
git commit -m "chore: add license" || cd . | |
git push origin --force-with-lease || cd . | |
check-license-lines: | |
name: Check License Lines | |
needs: add-license | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check License Lines | |
uses: kt3k/[email protected] |