v3.4.23 #1643
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 workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# (memo) | |
# GitHubで頻繁にブラウザテストが失敗するので | |
# コミット時のテストを簡易化しています。 | |
# ただし、リリース前には必ず全テスト実行するように | |
# publish用のスクリプトを追加してミスを防ぎます。 | |
# [詳細] https://github.com/kujirahand/nadesiko3/issues/1037 | |
name: Node.js CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 16.x, 14.x] | |
steps: | |
- name: Checkout submodule | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# checkout すれば動く機能を試す | |
- name: npm run hello | |
run: npm run hello | |
# 各種ライブラリをインストール | |
- name: npm install | |
run: npm install | |
# 各種ビルドしてテストする --- なぜかビルドで失敗するようなので一時的にコメントアウト | |
- name: npm run build | |
run: npm run build | |
- name: npm run test | |
run: npm run test | |