Skip to content

Fix Swift 6.1 and 6.2 Issues #227

Fix Swift 6.1 and 6.2 Issues

Fix Swift 6.1 and 6.2 Issues #227

Workflow file for this run

name: pull-request-validation
on:
pull_request:
branches:
- "*"
jobs:
commit-lint:
name: Lint Commit Messages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js and NPM
uses: actions/setup-node@v4
with:
node-version: "14"
- name: Install commitlint
run: npm install -g @commitlint/cli@11.0.0 @commitlint/config-conventional@11.0.0
- name: Run commitlint
run: commitlint -x @commitlint/config-conventional --from=${{ github.event.pull_request.base.sha }} --to=${{ github.event.pull_request.head.sha }}
swift-lint:
name: SwiftLint
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install SwiftLint
run: brew install swiftlint
- name: Run SwiftLint
run: swiftlint lint --strict Sources Tests/MockableTests
test:
name: Test
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
with:
enable_windows_checks: false
env: |

Check failure on line 48 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / pull-request-validation

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 48, Col: 12): Invalid input, env is not defined in the referenced workflow.
MOCKABLE_LINT: false
MOCKABLE_TEST: true