Merge pull request #2235 from opossum-tool/feat-replace-integration-t… #92
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
# SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates | |
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com> | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Lint and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js and yarn | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: 18 | |
- run: yarn install --immutable | |
- name: Increase watches | |
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
- run: yarn format-check | |
- run: yarn lint-check | |
- run: yarn typecheck | |
- run: yarn test:unit | |
- run: yarn test:integration-ci |