Konnorrogers/fix remote links #885
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
name: Actions | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
js-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.x.x | |
run_install: false | |
- name: use node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
cache-dependency-path: | | |
pnpm-lock.yaml | |
plugins/pnpm-lock.yaml | |
test/rails/dummy/pnpm-lock.yaml | |
- name: Install via pnpm | |
run: | | |
pnpm install | |
- name: Test | |
run: | | |
pnpm exec playwright install --with-deps | |
sudo apt-get update && sudo apt-get install -y gstreamer1.0-libav | |
pnpm test:ci | |
ruby-test: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
RAILS_ENV: test | |
strategy: | |
matrix: | |
ruby: ['2.7', '3.0'] | |
node-version: [20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: use node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
cache-dependency-path: | | |
pnpm-lock.yaml | |
plugins/pnpm-lock.yaml | |
test/rails/dummy/pnpm-lock.yaml | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.x.x | |
run_install: false | |
- name: Install via pnpm | |
run: | | |
pnpm install | |
pnpm build | |
cd test/rails/dummy | |
pnpm install | |
cd - | |
- name: Tests | |
run: | | |
bundle exec rake ci:test |