Skip to content

chore: update nightly release #25

chore: update nightly release

chore: update nightly release #25

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
env:
CI: true
jobs:
lint:
name: Lint
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Lint codes
run: pnpm lint
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [18]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Cache dist
uses: actions/cache@v4
with:
path: packages/*/dist
key: build-vue-i18n-os-${{ matrix.os }}-${{ github.sha }}
unittest:
name: Unit test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [18.19, 20, 22]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run unit tests
run: |
pnpm test
typecheck:
name: Type checking
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run type checking
run: pnpm typecheck