Skip to content

refactor(github/workflow): use javascript-project-setup reusable work… #35

refactor(github/workflow): use javascript-project-setup reusable work…

refactor(github/workflow): use javascript-project-setup reusable work… #35

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build & Lint & Test
on:
workflow_dispatch:
pull_request:
push:
branches:
- next
env:
NODE_VERSION: 22.11.0
jobs:
main:
name: Build & Lint & Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: 🛠️ JavaScript Project Setup
uses: the-nexim/actions/.github/workflows/javascript-project-setup.yaml@next
with:
node_version: ${{ env.NODE_VERSION }}
- name: 📦 Cache Wireit
uses: google/wireit@setup-github-actions-caching/v2
- name: 🏗️ Build Typescript
run: yarn build
env:
WIREIT_LOGGER: metrics
- name: 🧹 Run ESLint
run: yarn lint
env:
WIREIT_LOGGER: metrics
- name: 🧪 Run Test
run: yarn test
env:
WIREIT_LOGGER: metrics