-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from conwnet/master
release 0.0.12
- Loading branch information
Showing
68 changed files
with
1,754 additions
and
351 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Codacy Security Scan | ||
|
||
on: | ||
push: | ||
branches: ["master", "main"] | ||
pull_request: | ||
branches: ["master", "main"] | ||
|
||
jobs: | ||
codacy-security-scan: | ||
name: Codacy Security Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
|
||
- name: Run Codacy Analysis CLI | ||
uses: codacy/codacy-analysis-cli-action@master | ||
with: | ||
output: results.sarif | ||
format: sarif | ||
# Adjust severity of non-security issues | ||
gh-code-scanning-compat: true | ||
# Force 0 exit code to allow SARIF file generation | ||
# This will handover control about PR rejection to the GitHub side | ||
max-allowed-issues: 2147483647 | ||
|
||
# Upload the SARIF file generated in the previous step | ||
- name: Upload SARIF results file | ||
uses: github/codeql-action/upload-sarif@main | ||
with: | ||
sarif_file: results.sarif |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build & Test with VS Code build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
node-version: [14.x, 15.x] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ matrix.node-version }} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn build:vscode | ||
- run: yarn yalc && yarn build | ||
- uses: microsoft/playwright-github-action@v1 | ||
- run: yarn test:ci |
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 |
---|---|---|
|
@@ -59,15 +59,35 @@ You can start an online development environment with [Gitpod](https://www.gitpod | |
|
||
### Local development | ||
|
||
You need [these prerequisites (the same ones as for VS Code)](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) for development. | ||
```bash | ||
git clone [email protected]:conwnet/github1s.git | ||
cd github1s | ||
yarn | ||
yarn watch | ||
yarn serve # in another shell | ||
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. | ||
``` | ||
|
||
#### Local development with full VS Code build | ||
|
||
You need [these prerequisites (the same ones as for VS Code)](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) for development with full VS Code build. | ||
Please make sure you could build VS Code locally before the watch mode. | ||
|
||
To verify the build: | ||
|
||
```bash | ||
cd github1s | ||
yarn build:vscode | ||
``` | ||
|
||
After the inital successful build, you could use the watch mode: | ||
|
||
```bash | ||
$ git clone [email protected]:conwnet/github1s.git | ||
$ cd github1s | ||
$ yarn | ||
$ yarn watch | ||
$ yarn serve # in another shell | ||
$ # Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. | ||
cd github1s | ||
yarn | ||
yarn watch-with-vscode | ||
yarn serve # in another shell | ||
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. | ||
``` | ||
|
||
### ... or ... VS Code + Docker Development | ||
|
@@ -84,10 +104,10 @@ You can use the VS Code plugin [Remote-Containers](https://marketplace.visualstu | |
5. Open a new VS Code Terminal, then you can run the `yarn` commands listed above. | ||
|
||
```bash | ||
$ yarn | ||
$ yarn watch | ||
$ yarn serve # in another shell | ||
$ # Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. | ||
yarn | ||
yarn watch | ||
yarn serve # in another shell | ||
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. | ||
``` | ||
|
||
### Format all codes | ||
|
@@ -101,8 +121,8 @@ It uses `prettier` to format all possible codes. | |
## Build | ||
|
||
```bash | ||
$ yarn | ||
$ yarn build | ||
yarn | ||
yarn build | ||
``` | ||
|
||
## Feedback | ||
|
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
Oops, something went wrong.
9c91e5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: