aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-04-27 21:06:22 -0600
committerTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-04-27 21:06:22 -0600
commit763fb7d98c3accbb21adf035a7cf0a83cb9533c9 (patch)
tree9d333fbca2a2a8e19d79904a4e29226174925cfc /.github
downloadtanzanite-763fb7d98c3accbb21adf035a7cf0a83cb9533c9.tar.gz
tanzanite-763fb7d98c3accbb21adf035a7cf0a83cb9533c9.tar.bz2
tanzanite-763fb7d98c3accbb21adf035a7cf0a83cb9533c9.zip
legit just copy utilibot v2 code
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nodejs.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644
index 0000000..e76a579
--- /dev/null
+++ b/.github/workflows/nodejs.yml
@@ -0,0 +1,34 @@
+name: Node.js CI
+
+on:
+ push:
+ branches: [v2]
+ pull_request:
+ branches: [v2]
+
+ workflow_dispatch:
+
+jobs:
+ Test:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x, 15.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Install dependencies
+ run: yarn
+ - name: Fix config
+ run: cp src/config/example-options.ts src/config/options.ts
+ - name: ESLint
+ run: yarn lint
+ - name: Test Build
+ run: yarn build
+ - name: Test formatting
+ run: yarn prettier --check .