Github Actions是否支持在催化剂上运行我的构建?
name: Swift
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
如果是的话,如何将该配置添加到上述“动作”脚本中?
谢谢
答案 0 :(得分:0)
签出这个swift starter,在您随附的脚本中,我可以看到一些yaml缩进问题,最好将您的存储库发布以供进一步讨论。
name: Swift
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v