Change default ip for dev server from 0.0.0.0
to *
(#4307)
#7
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
name: Main branch | |
# This flow will re-run tests on the main branch after a PR has been merged. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
timeout-minutes: 30 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }} | |
cancel-in-progress: true | |
if: ${{ github.repository_owner == 'cloudflare' }} | |
name: "Tests" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.8.0 | |
- name: Use Node.js 16.18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.18 | |
cache: "pnpm" | |
- name: Install workerd Dependencies | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update | |
sudo apt-get install -y libc++1 | |
- name: Install NPM Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run builds | |
run: pnpm run build | |
env: | |
NODE_ENV: "production" | |
CI_OS: ${{ runner.os }} | |
- name: Check for errors | |
run: pnpm run check | |
env: | |
NODE_OPTIONS: "--max_old_space_size=8192" | |
- name: Run tests | |
run: pnpm run test:ci | |
env: | |
TMP_CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
TMP_CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
NODE_OPTIONS: "--max_old_space_size=8192" |