Skip to content

Fix typo in CONTRIBUTING.md #144

Fix typo in CONTRIBUTING.md

Fix typo in CONTRIBUTING.md #144

Workflow file for this run

name: GitHub Actions
on:
pull_request:
push:
branches:
- master
jobs:
validation:
name: Validation
runs-on: macos-11
strategy:
matrix:
xcode_version:
- 12.5.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- name: Get ruby gem cache
id: gem-cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-1-gem-${{ hashFiles('Gemfile.lock') }}
restore-keys: ${{ runner.os }}-1-gem-
- name: Install ruby gems
if: steps.gem-cache.cache.outputs.cache-hit != 'true'
run: make gem
- name: Get SwiftPM cache
uses: actions/cache@v2
with:
path: Tools/.build
key: ${{ runner.os }}-${{ matrix.xcode_version }}-1-spm-${{ hashFiles('Tools/Package.resolved') }}
restore-keys: ${{ runner.os }}-${{ matrix.xcode_version }}-1-spm-
- name: Podspec lint
run: make pod-lib-lint
- name: Validation
run: make all && [ -z "$(git status --porcelain)" ] && make lint
env:
SPM_FORCE_BUILD: 1
test:
name: Test on macOS
runs-on: macos-11
strategy:
matrix:
xcode_version:
- 11.7
- 12.5.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- name: Show environments
run: |
swift --version
xcodebuild -version
git branch
git shortlog
- name: Get npm cache
id: npm-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-0-npm-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-0-npm-
- name: Install npm packages
if: steps.npm-cache.cache.outputs.cache-hit != 'true'
run: make npm
- name: Test library & Generate snapshots
run: set -o pipefail && xcodebuild build-for-testing test-without-building -project Playbook.xcodeproj -scheme Playbook -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro' ENABLE_TESTABILITY=YES | xcpretty -c
- name: Generate snapshots of example app
run: set -o pipefail && xcodebuild build-for-testing test-without-building -project Example/PlaybookExample.xcodeproj -scheme SamplePlaybook -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro' ENABLE_TESTABILITY=YES | xcpretty -c
- name: Visual regression test
if: matrix.xcode_version == '12.5.1'
run: npx percy upload Snapshots
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}