Skip to content

feat: initial anticheat #81

feat: initial anticheat

feat: initial anticheat #81

Workflow file for this run

name: scripts
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '!*' # Do not execute on tags
paths:
- src/**
- tools/**
- yarn.lock
- .github/workflows/cd-scripts.yml
- eslint.config.js
- vitest.config.ts
- tsconfig.json
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
with:
submodules: true
- run: corepack enable
- uses: actions/setup-node@v4.0.3
with:
node-version: 22
- run: yarn install --immutable
- run: node tools/build
- run: yarn test --run --coverage
- name: Upload coverage
# Run only on push on main repo
if: github.repository == 'LushWay/Scripts' && github.ref == 'refs/heads/main'
uses: paambaati/codeclimate-action@v8.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
with:
submodules: true
- run: corepack enable
- uses: actions/setup-node@v4.0.3
with:
node-version: 22
- run: yarn install --immutable
- run: node tools/build
- run: yarn tsc -b
- run: yarn eslint src