Bump actions/setup-node from 3 to 4 #265
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: π§ͺ Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout | |
uses: actions/checkout@v3 | |
- name: β Get Node Version | |
id: node_version | |
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
- name: β Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ steps.node_version.outputs.NVMRC }}' | |
cache: yarn | |
- name: π¦ Install Dependencies | |
run: yarn | |
- name: π Build Adapter | |
working-directory: remix-google-cloud-functions | |
run: yarn build | |
- name: π§ͺ Unit Tests | |
working-directory: remix-google-cloud-functions | |
run: yarn test | |
- name: π Build Example | |
working-directory: example | |
run: NODE_ENV=development yarn build | |
- name: π Install Browsers | |
working-directory: example | |
run: yarn playwright install --with-deps | |
- name: π§ͺ Integration Tests | |
working-directory: example | |
run: yarn playwright test | |
- name: π¦ Upload Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-report | |
path: example/playwright-report/ | |
retention-days: 30 | |
automerge: | |
needs: test | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: π€ Automerge | |
uses: fastify/github-action-merge-dependabot@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |