Skip to content

fix(cloud-function): treat zh-Hant like zh-TW #343

fix(cloud-function): treat zh-Hant like zh-TW

fix(cloud-function): treat zh-Hant like zh-TW #343

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test
on:
push:
branches:
- main
pull_request:
# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout (dex)
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node (dex)
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install (dex)
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint prettier
run: npm run prettier-check
- name: Lint ESLint
run: npm run eslint
- name: Check TypeScript
run: npm run check:tsc
test:
runs-on: ubuntu-latest
steps:
- name: Checkout (dex)
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node (dex)
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install (dex)
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: npm run test:coverage
env:
FORCE_COLOR: 1