diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ea1b2190..1db8a1cbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,10 +31,19 @@ jobs: - name: Update file watchers because of rails settings cached run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p + - name: Read .tool-versions + uses: marocchino/tool-versions-action@v1 + id: versions + + - name: Use Node.js ${{ steps.versions.outputs.nodejs}} + uses: actions/setup-node@v3 + with: + node-version: ${{ steps.versions.outputs.nodejs}} + - name: Install ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.0.0 + ruby-version: ${{ steps.versions.outputs.ruby}} bundler-cache: true - name: Cache NPM dependencies @@ -64,3 +73,9 @@ jobs: - name: Run tests run: bin/rake spec + + - name: Check unstaged changes + run: | + git --no-pager diff --color + git update-index --refresh + git diff-index --quiet HEAD diff --git a/.tool-versions b/.tool-versions index 01c9127fd..66831fbc6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ ruby 3.0.0 -nodejs lts-erbium +nodejs 12.22.12 postgres 12.2