mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
#
|
|
# Copyright © 2025 Hardcore Engineering Inc.
|
|
#
|
|
# Licensed under the Eclipse Public 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 https://www.eclipse.org/legal/epl-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: CI
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
registry-url: 'https://npm.pkg.github.com'
|
|
scope: '@hcengineering'
|
|
|
|
- name: Prepare .npmrc for GitHub Packages
|
|
run: |
|
|
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
|
|
|
|
- name: Checking for mis-matching dependencies...
|
|
run: node common/scripts/install-run-rush.js check
|
|
- name: Rush Install
|
|
run: node common/scripts/install-run-rush.js update
|
|
- name: Rush rebuild
|
|
run: node common/scripts/install-run-rush.js build
|
|
- name: Rush validate
|
|
run: node common/scripts/install-run-rush.js validate
|
|
- name: Linting
|
|
run: node common/scripts/install-run-rush.js lint
|
|
- name: Formatting
|
|
run: node common/scripts/install-run-rush.js format |