Update test.yml

This commit is contained in:
こけっち 2022-03-21 19:38:59 +09:00 committed by GitHub
parent 721c47a74b
commit 0cf950bb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,44 +8,44 @@ on:
pull_request: pull_request:
jobs: jobs:
mocha: #mocha:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
strategy: # strategy:
matrix: # matrix:
node-version: [16.x] # node-version: [16.x]
services: # services:
postgres: # postgres:
image: postgres:13 # image: postgres:13
ports: # ports:
- 54312:5432 # - 54312:5432
env: # env:
POSTGRES_DB: test-misskey # POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust # POSTGRES_HOST_AUTH_METHOD: trust
redis: # redis:
image: redis:6 # image: redis:6
ports: # ports:
- 56312:6379 # - 56312:6379
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
with: # with:
submodules: true # submodules: true
- name: Use Node.js ${{ matrix.node-version }} # - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 # uses: actions/setup-node@v1
with: # with:
node-version: ${{ matrix.node-version }} # node-version: ${{ matrix.node-version }}
- name: Install dependencies # - name: Install dependencies
run: yarn install # run: yarn install
- name: Check yarn.lock # - name: Check yarn.lock
run: git diff --exit-code yarn.lock # run: git diff --exit-code yarn.lock
- name: Copy Configure # - name: Copy Configure
run: cp .github/misskey/test.yml .config # run: cp .github/misskey/test.yml .config
- name: Build # - name: Build
run: yarn build # run: yarn build
- name: Test # - name: Test
run: yarn mocha # run: yarn mocha
e2e: e2e:
runs-on: ubuntu-latest runs-on: ubuntu-latest