mirror of
https://github.com/vercel/micro.git
synced 2026-03-28 11:37:05 +00:00
* chore: add .npmrc * feat: configure TypeScript and ESLint * feat!: rewrite modules/files using TypeScript * chore: export types for the modules * feat: change minimum node version to 14.5.0 BREAKING CHANGE: Switched to using ES2020 syntax and minimum Node engine to 14.5.0. * feat!: removes the deprecated cli options BREAKING CHANGE: Removes the deprecated options/arguments for starting the server. They are: - --port (-p) - --host (-h) - --unix-socket (-s) * test!: rewrite test using TypeScript & node-tap * build: update ci script * chore: update ESLint config * ci: run the test script in the right directory * ci: add test script to root package.json * doc: update usage programmatically
22 lines
440 B
YAML
22 lines
440 B
YAML
name: CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version:
|
|
- 16
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: Run tests
|
|
run: yarn run test
|