Bump actions/checkout from 5 to 6 #3
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: Tests and Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| max-parallel: 3 | |
| matrix: | |
| php_version: | |
| - '5.4' | |
| - '7.0' | |
| - '7.1' | |
| - '7.2' | |
| - '7.3' | |
| - '7.4' | |
| steps: | |
| - name: Checkouting code... | |
| uses: actions/checkout@v6 | |
| - name: Read Node.js version from package.json | |
| id: node-version | |
| run: | | |
| NODE_VERSION=$(jq -r '.engines.node // empty' package.json) | |
| if [[ -z "$NODE_VERSION" || "$NODE_VERSION" == "null" ]]; then | |
| echo "package.json engines.node is required" >&2 | |
| exit 1 | |
| fi | |
| echo "version=$NODE_VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ steps.node-version.outputs.version }} | |
| - name: Enable legacy Docker schema v1 pulls for old PHP tags | |
| run: | | |
| sudo mkdir -p /etc/systemd/system/docker.service.d | |
| cat <<'EOF' | sudo tee /etc/systemd/system/docker.service.d/10-enable-schema1.conf | |
| [Service] | |
| Environment=CONTAINERD_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1 | |
| EOF | |
| sudo systemctl daemon-reload | |
| sudo systemctl restart docker | |
| docker version | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run integration tests | |
| run: npm test | |
| env: | |
| PHP_VERSION: ${{ matrix.php_version }} |