お気に入り・用語カテゴリ設定を追加し、辞書とハイライト処理を改善 #8
This file contains hidden or 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
| name: run tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest #通常はubuntu-latestにすることが多い、ubuntuはLinuxを用いたOSの一つで、ci/cd時にもよく使われる | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v7 #v3だと古い | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 #v4は2024年ごろの主流 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install dependencies #continuous intengrationではなくclean install | |
| run: npm ci | |
| - name: build package | |
| run: npm run build | |
| - name: run tests | |
| run: npm test | |