refactor(github/workflow): use javascript-project-setup reusable work… #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
main: | |
name: Build & Lint & Test | |
runs-on: ubuntu-latest | |
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 |