diff options
| author | Shinigami <[email protected]> | 2022-11-19 22:21:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-19 22:21:53 +0100 |
| commit | 73690e4ddd72be7fb1e7fb85dd21dfcb84ee1776 (patch) | |
| tree | 76c7ef0edc2e46d89588b44419bbad53a83f17de | |
| parent | dfd74f29311ef4d2a096b3751217897e86474a0f (diff) | |
| download | faker-73690e4ddd72be7fb1e7fb85dd21dfcb84ee1776.tar.xz faker-73690e4ddd72be7fb1e7fb85dd21dfcb84ee1776.zip | |
test: use runner on different timezone (#1537)
| -rw-r--r-- | .github/workflows/ci.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e22aefaf..6be030eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,55 @@ jobs: - name: Test run: pnpm run test + timezone-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + node_version: [18] + fail-fast: false + env: + LANG: zh_SG.UTF-8 + TZ: Asia/Singapore + + name: 'Timezone Test: node-${{ matrix.node_version }}, ${{ matrix.os }}' + steps: + - name: Set system LANG=zh_SG.UTF-8 + run: | + sudo locale-gen zh_SG.UTF-8 + sudo update-locale LANG=zh_SG.UTF-8 + + - name: Check date + run: date + + - name: Checkout + uses: actions/checkout@v3 + with: + # Required for docs/versions tests + fetch-depth: 0 + + - name: Install pnpm + uses: pnpm/[email protected] + with: + version: 7 + + - name: Set node version to ${{ matrix.node_version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node_version }} + cache: 'pnpm' + + - name: Install deps + run: pnpm install + env: + CYPRESS_INSTALL_BINARY: 0 + + - name: Build + run: pnpm run build + + - name: Test + run: pnpm run test + e2e-test: runs-on: ubuntu-latest name: 'E2E Doc Test: node-18, ubuntu-latest' |
