-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
72 additions
and
23,758 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,89 +9,83 @@ on: | |
jobs: | ||
test: | ||
name: Test packages | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 6.22.2 | ||
node-version: 18.x | ||
cache: 'yarn' | ||
|
||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
cache: 'pnpm' | ||
- name: Enable corepack | ||
run: corepack enable | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
run: yarn install | ||
|
||
- name: Check lint | ||
run: pnpm run test:lint | ||
run: yarn run test:lint | ||
|
||
- name: Compile packages | ||
run: pnpm run compile | ||
run: yarn run compile | ||
|
||
- name: Docker compose | ||
run: docker-compose up -d | ||
|
||
- name: Run tests | ||
run: pnpm run coverage | ||
run: yarn run coverage | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
|
||
test-examples: | ||
name: Test examples | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 6.22.2 | ||
node-version: 18.x | ||
cache: 'yarn' | ||
|
||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
cache: 'pnpm' | ||
- name: Enable corepack | ||
run: corepack enable | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
run: yarn install | ||
|
||
- name: Compile packages | ||
run: pnpm run compile | ||
run: yarn run compile | ||
|
||
- name: Test examples | ||
run: pnpm run test:examples | ||
run: yarn run test:examples | ||
env: | ||
REACT_APP_API_URL: http://localhost:3000 | ||
|
||
test-documentation: | ||
name: Test documentation | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 6.22.2 | ||
node-version: 18.x | ||
cache: 'yarn' | ||
|
||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
cache: 'pnpm' | ||
- name: Enable corepack | ||
run: corepack enable | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
run: yarn install | ||
|
||
- name: Test documentation | ||
run: | | ||
cd website | ||
pnpm run generate-api-docs | ||
pnpm run build | ||
run: yarn workspace accounts-js run build |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ This example demonstrate how to use [accounts-js](https://github.com/accounts-js | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/graphql-server-typeorm-postgres` | ||
|
||
## Prerequisites | ||
|
@@ -22,7 +22,7 @@ docker-compose up -d | |
to start a new one. | ||
|
||
If you have postgres already installed on your system, you can just edit the .env file and use your current postgres data instead of the supplied Docker image. | ||
Alternatively you can simply prepend the `DATABASE_URL` and `ACCOUNTS_SECRET` environmental variables to your `pnpm run start` command. | ||
Alternatively you can simply prepend the `DATABASE_URL` and `ACCOUNTS_SECRET` environmental variables to your `yarn run start` command. | ||
|
||
## Getting Started | ||
|
||
|
@@ -31,7 +31,7 @@ Start the app. | |
Visit <http://localhost:4000/> | ||
|
||
```bash | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
-> [Start the client side](../react-graphql-typescript). | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ This example demonstrate how to use [accounts-js](https://github.com/accounts-js | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/graphql-server-typescript` | ||
|
||
## Prerequisites | ||
|
@@ -28,7 +28,7 @@ Start the app. | |
Visit http://localhost:4000/ | ||
|
||
```bash | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
-> [Start the client side](../react-graphql-typescript). | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ This example demonstrate how to use setup [accounts-js](https://github.com/accou | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/magic-link-server-typescript` | ||
|
||
## Prerequisites | ||
|
@@ -29,7 +29,7 @@ for a more comprehensive example of general accounts use. | |
To run the example: | ||
|
||
```bash | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
You should see output on the console suggesting that authenticating using a token was | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ This example demonstrate how to use [accounts-js](https://github.com/accounts-js | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/react-graphql-typescript` | ||
|
||
## Getting Started | ||
|
@@ -18,7 +18,7 @@ If you haven't started the example server side, [go ahead to start it first](../ | |
Start the app. | ||
|
||
```bash | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
Open a browser and navigate to [http://localhost:3000](http://localhost:3000). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,16 @@ In order to get the example running you also need to start the [REST server](htt | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/react-rest-typescript` | ||
|
||
## Getting Started | ||
|
||
Start the app. | ||
|
||
``` | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
Open a browser and navigate to [http://localhost:3000](http://localhost:3000). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,16 @@ You must have a mongodb server running before starting the server. | |
In order to be able to run this example on your machine you first need to do the following steps: | ||
|
||
- Clone the repository `git clone [email protected]:accounts-js/accounts.git` | ||
- Install project dependencies: `pnpm install` | ||
- Compile the packages `pnpm run compile` | ||
- Install project dependencies: `yarn install` | ||
- Compile the packages `yarn run compile` | ||
- Go to the example folder `cd examples/rest-express-typescript` | ||
|
||
## Getting Started | ||
|
||
Start the app. | ||
|
||
``` | ||
pnpm run start | ||
yarn run start | ||
``` | ||
|
||
Open a browser and navigate to [http://localhost:4000](http://localhost:4000). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[build] | ||
base = "." | ||
publish = "website/build" | ||
command = "npx pnpm install --store=node_modules/.pnpm-store && cd website && npm run generate-api-docs && npm run build" | ||
command = "yarn install && yarn workspace accounts-js run build" | ||
|
||
[build.environment] | ||
NODE_VERSION = "14" | ||
NODE_VERSION = "18" | ||
NPM_FLAGS = "--version" |
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
Oops, something went wrong.