Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/workflows/Lint.yml

This file was deleted.

30 changes: 26 additions & 4 deletions .github/workflows/Main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,39 @@ name: CI

on: [pull_request]

permissions:
contents: read
pull-requests: read

env:
CODE_DIR: src

jobs:
helm-lint:
name: Run Helm lint Check
runs-on: ubuntu-latest
steps:
- name: helm-lint
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1

build_and_test:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.13.x]
steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
Expand All @@ -26,11 +43,16 @@ jobs:
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install --no-install-recommends yarn

- name: Install dependecies
run: yarn
- name: Lint
run: yarn run eslint:check
uses: wearerequired/lint-action@v2
with:
tsc: true
eslint: true
eslint_extensions: js,jsx,ts,tsx
prettier: true
prettier_dir: ${{ env.CODE_DIR }}
- name: Test
run: yarn test

Expand Down
Loading