implement dup instructions #46
Workflow file for this run
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: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.0.0 | |
- name: Cache npm directory | |
uses: actions/cache@v3 | |
with: | |
# CIでキャッシュするディレクトリやファイルのパス | |
path: ~/.npm | |
# キャッシュを保存・復元する際のキー | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
# キーで指定したキャッシュがヒットしなかった際に代理として使用されるキー | |
restore-keys: ${{ runner.os }}-npm- | |
- name: Install node modules | |
run: npm ci | |
- name: Build | |
run: npm run build |