diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 00000000..7ca7fcf5 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,24 @@ +name: ESLint +on: [push] +jobs: + eslint: + runs-on: depot-ubuntu-latest + + env: + RAILS_ENV: test + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.17.0" + cache: "npm" + + - name: Install JS dependencies + run: npm install --legacy-peer-deps + + - name: Run Linter + run: npx eslint -c eslint.config.js . diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml new file mode 100644 index 00000000..68d1ff8d --- /dev/null +++ b/.github/workflows/typescript.yml @@ -0,0 +1,24 @@ +name: Typescript +on: [push] +jobs: + tsc: + runs-on: depot-ubuntu-latest + + env: + RAILS_ENV: test + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20.17.0" + cache: "npm" + + - name: Install JS dependencies + run: npm install --legacy-peer-deps + + - name: Run Typescript tsc + run: npx tsc --project tsconfig.json