Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to GitHub Actions, general cleanup. #456

Merged
merged 2 commits into from Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
111 changes: 0 additions & 111 deletions .circleci/config.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .editorconfig

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
@@ -0,0 +1,19 @@
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@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 ZEIT, Inc.
Copyright (c) 2022 Vercel, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions errors/no-export.md
Expand Up @@ -10,11 +10,11 @@ You need to ensure that the entry file you passed to the `micro` command contain

```js
module.exports = (req, res) => {
res.end('test')
}
res.end('test');
};
```

### Useful Links

- [List of examples](https://github.com/zeit/micro/tree/master/examples)
- [Usage information](https://github.com/zeit/micro#usage)
- [List of examples](https://github.com/vercel/micro/tree/master/examples)
- [Usage information](https://github.com/vercel/micro#usage)
11 changes: 2 additions & 9 deletions examples/external-api-call/README.md
@@ -1,12 +1,11 @@

# External API call example

## How to use

Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/external-api-call
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/external-api-call
cd external-api-call
```

Expand All @@ -17,12 +16,6 @@ npm install
npm run start
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
now
```

## The idea behind the example

Shows how to get data from an external api using async/await.
11 changes: 2 additions & 9 deletions examples/json-body-parsing/README.md
@@ -1,12 +1,11 @@

# Parse JSON body example

## How to use

Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/json-body-parsing
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/json-body-parsing
cd json-body-parsing
```

Expand All @@ -17,12 +16,6 @@ npm install
npm run start
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
now
```

## The idea behind the example

Shows how to get data posted to your microservice using async/await.
15 changes: 3 additions & 12 deletions examples/socket.io-chat-app/README.md
@@ -1,15 +1,12 @@
# Chat app with socket.io

Code adapted from the corresponding tutorial [Building a Realtime Chat Webapp, by @notquiteleo](https://zeit.co/docs/examples/chat)

## How to use


Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/socket.io-chat-app
cd socket.io-chat-app
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/socket.io-chat-app
cd socket.io-chat-app
```

Install it and run:
Expand All @@ -19,12 +16,6 @@ npm install
npm run start
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
now
```

## The idea behind the example

Shows how to make use of socket.io with micro, to deploy on now.
11 changes: 2 additions & 9 deletions examples/urlencoded-body-parsing/README.md
@@ -1,12 +1,11 @@

# Parse JSON body example

## How to use

Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/urlencoded-body-parsing
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/urlencoded-body-parsing
cd urlencoded-body-parsing
```

Expand All @@ -17,12 +16,6 @@ npm install
npm run start
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
now
```

## The idea behind the example

Shows how to get urlencoded (html form post) data posted to your microservice using async/await.
10 changes: 2 additions & 8 deletions examples/with-graphql-request/README.md
Expand Up @@ -2,10 +2,10 @@

## How to use

Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/with-graphql-request
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/with-graphql-request
cd with-graphql-request
```

Expand All @@ -16,12 +16,6 @@ $ yarn install # (or `$ npm install`)
$ yarn run start # (or `$ npm run start`)
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
$ now
```

## The idea behind the example

Shows how to get data from a GraphQL endpoint using [GraphQL Request](https://github.com/graphcool/graphql-request).
Expand Down
10 changes: 2 additions & 8 deletions examples/with-https/README.md
Expand Up @@ -2,10 +2,10 @@

## How to use

Download the example [or clone the repo](https://github.com/zeit/micro):
Download the example [or clone the repo](https://github.com/vercel/micro):

```bash
curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/with-https
curl https://codeload.github.com/vercel/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/with-https
cd socket.io-chat-app
```

Expand All @@ -16,12 +16,6 @@ npm install
npm run start
```

Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))

```bash
now
```

## The idea behind the example

Shows how to make use of HTTPS requests with micro.