Skip to content

Bump actions/checkout from 6.0.1 to 6.0.2 #1283

Bump actions/checkout from 6.0.1 to 6.0.2

Bump actions/checkout from 6.0.1 to 6.0.2 #1283

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build ${{ matrix.environment }} worker
strategy:
matrix:
environment:
- dev
- production
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: ".nvmrc"
- name: Set wrangler version
id: wrangler
run: echo "version=$(jq -r .devDependencies.wrangler package.json | cut -c2-)" >> "$GITHUB_OUTPUT"
- name: Install packages
run: yarn install
- name: Build ${{ matrix.environment }} worker
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
wranglerVersion: ${{ steps.wrangler.outputs.version }}
command: deploy --dry-run --env=${{ matrix.environment }}
test:
runs-on: ubuntu-latest
name: Test worker
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: ".nvmrc"
- name: Install packages
run: yarn install
- name: Test
run: yarn test