Skip to content

Commit

Permalink
Separate CI into Test and Hygiene
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Nov 13, 2021
1 parent 630809e commit cb33022
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 18 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/workflow.yml → .github/workflows/hygiene.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
name: Main workflow
name: Hygiene

on:
- pull_request
- push

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest

runs-on: ${{ matrix.os }}
hygiene:
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand Down Expand Up @@ -47,8 +39,3 @@ jobs:
git diff
exit 1
fi
- name: Run FOSSA scan and upload build data
uses: ./
with:
fossa-api-key: 570e8f8e839e20a229f196974ede9a4d
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
- pull_request
- push

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run FOSSA scan and upload build data
uses: ./
with:
fossa-api-key: 570e8f8e839e20a229f196974ede9a4d
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Fossa Action

[![Main workflow](https://github.com/fossa-contrib/fossa-action/workflows/Main%20workflow/badge.svg?branch=master)](https://github.com/fossa-contrib/fossa-action/actions)
[![CodeQL](https://github.com/fossa-contrib/fossa-action/workflows/CodeQL/badge.svg?branch=master)](https://github.com/fossa-contrib/fossa-action/actions)
[![Test](https://github.com/fossa-contrib/fossa-action/actions/workflows/test.yml/badge.svg)](https://github.com/fossa-contrib/fossa-action/actions)
[![Hygiene](https://github.com/fossa-contrib/fossa-action/actions/workflows/hygiene.yml/badge.svg)](https://github.com/fossa-contrib/fossa-action/actions)
[![CodeQL](https://github.com/fossa-contrib/fossa-action/actions/workflows/codeql.yml/badge.svg)](https://github.com/fossa-contrib/fossa-action/actions)
[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B7767%2Fgithub.com%2Ffossa-contrib%2Ffossa-action.svg?type=small)](https://app.fossa.com/projects/custom%2B7767%2Fgithub.com%2Ffossa-contrib%2Ffossa-action?ref=badge_small)

## Synopsis
Expand Down

0 comments on commit cb33022

Please sign in to comment.