Skip to content

feat: include a demo extension #2

feat: include a demo extension

feat: include a demo extension #2

---
#
# Copyright (C) 2023 Red Hat, Inc.
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
name: Pull Request check of the demo extension
on:
pull_request:
paths:
- "extension/**"
jobs:
build:
name: Check demo extension
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Execute yarn
run: yarn --frozen-lockfile
working-directory: ./extension
- name: Run linter
run: yarn lint:check
working-directory: ./extension
- name: Run formatter
run: yarn format:check
working-directory: ./extension
- name: Run typecheck
run: yarn typecheck
working-directory: ./extension
- name: yarn
working-directory: ./extension
run: |
yarn --frozen-lockfile --network-timeout 180000