summaryrefslogtreecommitdiff
path: root/.github/workflows/nodejs.yml
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-03-20 02:40:35 +0900
committerGitHub <noreply@github.com>2020-03-20 02:40:35 +0900
commit0420c548dade2c5b00353b4a5f20606667fc4253 (patch)
tree8e5516e7accda0714ce4193e4c366b5522caf678 /.github/workflows/nodejs.yml
parentMerge pull request #6165 from syuilo/patch/autogen/v11 (diff)
downloadsharkey-0420c548dade2c5b00353b4a5f20606667fc4253.tar.gz
sharkey-0420c548dade2c5b00353b4a5f20606667fc4253.tar.bz2
sharkey-0420c548dade2c5b00353b4a5f20606667fc4253.zip
Update dependencies (#6167)
* Update CI (#11) * Update nodejs.yml * Fix time * no docker * no CI * build only * Update dependencies
Diffstat (limited to '.github/workflows/nodejs.yml')
-rw-r--r--.github/workflows/nodejs.yml45
1 files changed, 7 insertions, 38 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 91668786e2..4ea86fb391 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -1,53 +1,22 @@
name: Node.js CI
-on:
- push:
- branches:
- - master
- - develop
- pull_request:
+
+on: [push]
jobs:
build_and_test:
+
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [11.10.x, 12.x]
-
- services:
- postgres:
- image: postgres:10-alpine
- ports:
- - 5432:5432
- env:
- POSTGRES_DB: test-misskey
- POSTGRES_HOST_AUTH_METHOD: trust
- redis:
- image: redis:alpine
- ports:
- - 6379:6379
+ node-version: [11.10.x, 12.x, 13.x]
steps:
- - uses: actions/checkout@v1
+ - 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 install
- - name: Copy Configure
- run: cp .circleci/misskey/*.yml .config
- - name: Build
- run: yarn build
- - name: Test
- run: yarn test
-
- lint:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v1
- with:
- node-version: 12.x
- run: yarn install
- - run: yarn lint
+ - run: cp .circleci/misskey/*.yml .config/
+ - run: yarn build