Skip to content

Commit

Permalink
[GitHub Actions] Split workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed Oct 1, 2019
1 parent f4bc6fd commit 519ba8d
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Build

on:
push:
branches: [master]
paths:
- '.dockerignore'
- '.github/workflows/docker-build.yml'
- 'Dockerfile'
- 'Package*'
- 'Sources/**'
- 'Tests/**'
pull_request:
paths:
- '.dockerignore'
- '.github/workflows/docker-build.yml'
- 'Dockerfile'
- 'Package*'
- 'Sources/**'
- 'Tests/**'

jobs:
DockerBuild:
name: Docker Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker Build
run: docker build -t action-swiftlint .
25 changes: 25 additions & 0 deletions .github/workflows/docker-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Lint

on:
push:
branches: [master]
paths:
- '.dockerignore'
- '.github/workflows/docker-lint.yml'
- 'Dockerfile'
pull_request:
paths:
- '.dockerignore'
- '.github/workflows/docker-lint.yml'
- 'Dockerfile'

jobs:
DockerLint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker Lint
uses: docker://replicated/dockerfilelint
with:
args: Dockerfile
27 changes: 27 additions & 0 deletions .github/workflows/swiftpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: SwiftPM

on:
push:
branches: [master]
paths:
- '.github/workflows/swiftpm.yml'
- 'Package*'
- 'Sources/**'
- 'Tests/**'
pull_request:
paths:
- '.github/workflows/swiftpm.yml'
- 'Package*'
- 'Sources/**'
- 'Tests/**'

jobs:
Linux:
runs-on: ubuntu-latest
container:
image: norionomura/swiftlint:swift-5
steps:
- uses: actions/checkout@v1
- run: swift test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 519ba8d

Please sign in to comment.