Skip to content

Merge pull request #1803 from opossum-tool/dependabot/npm_and_yarn/ty… #80

Merge pull request #1803 from opossum-tool/dependabot/npm_and_yarn/ty…

Merge pull request #1803 from opossum-tool/dependabot/npm_and_yarn/ty… #80

Workflow file for this run

# 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]
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:
node-version: 18
- name: Use cached node modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ 'ubuntu-latest' }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile --prefer-offline --network-timeout 560000
- name: Increase watches
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- run: yarn lint-check
- run: yarn compile-all
- run: yarn test:unit
- run: yarn test:integration-ci