Skip to content

Commit

Permalink
💚fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FujishigeTemma committed Sep 10, 2021
1 parent 9fd8d7b commit e1a7303
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 39 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci-frontend.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Frontend

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'webapp/frontend/**'

defaults:
run:
working-directory: ./webapp/frontend

jobs:
packages:
name: check npm install
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v2
with:
node-version: 14
check-latest: true
cache: npm
- name: check npm ci
run: npm ci
lint:
runs-on: self-hosted
needs: [packages]
steps:
- uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v2
with:
node-version: 14
check-latest: true
cache: npm
- name: install dependencies
run: npm ci
- name: run lint
run: npm run lint
build:
runs-on: self-hosted
needs: [packages]
steps:
- uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v2
with:
node-version: 14
check-latest: true
cache: npm
- name: install dependencies
run: npm ci
- name: run build
run: npm run build
9 changes: 4 additions & 5 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: check golang implementation
name: Go

on:
push:
Expand Down Expand Up @@ -28,7 +28,6 @@ on:

jobs:
lint:
name: Lint
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
Expand All @@ -42,14 +41,14 @@ jobs:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Setup environments
- name: setup environments
run: make up
working-directory: ./dev
- name: "Run -no-load"
- name: run -no-load
run: |
make
./bin/benchmarker -no-load
working-directory: ./benchmarker
- name: Teardown environments
- name: teardown environments
run: make down
working-directory: ./dev
2 changes: 1 addition & 1 deletion webapp/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore",
"lint": "npm run lint:js && npm run lint:style",
"lint:fix": "npm run lint:js --fix && npm run lint:style --fix",
"test": "jest"
"test": "jest --passWithNoTests"
},
"lint-staged": {
"*.{js,vue}": "eslint",
Expand Down

0 comments on commit e1a7303

Please sign in to comment.