Skip to content

Commit

Permalink
reduce matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 25, 2020
1 parent 19d8967 commit a3d7b80
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 4 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/jobs/dev-test.yml
Expand Up @@ -4,3 +4,4 @@ steps:
- script: yarn test
displayName: "Run tests"
- template: ../steps/publish-test-results.yml
- template: ../steps/publish-code-coverage.yml
1 change: 1 addition & 0 deletions .azure-pipelines/jobs/prod-test.yml
Expand Up @@ -5,3 +5,4 @@ steps:
- script: yarn test:dist
displayName: "Run tests on dist"
- template: ../steps/publish-test-results.yml
- template: ../steps/publish-code-coverage.yml
11 changes: 11 additions & 0 deletions .azure-pipelines/steps/publish-code-coverage.yml
@@ -0,0 +1,11 @@
steps:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
reportDirectory: $(System.DefaultWorkingDirectory)/coverage
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
displayName: "Publish coverage"
condition: and(variables.ENABLE_CODE_COVERAGE, succeededOrFailed())
- script: yarn codecov -f coverage/cobertura-coverage.xml
displayName: "Publish coverage to Codecov"
condition: and(variables.ENABLE_CODE_COVERAGE, succeededOrFailed())
11 changes: 10 additions & 1 deletion .github/workflows/dev-test.yml
@@ -1,4 +1,4 @@
name: Dev_Test
name: Dev

on: [push, pull_request]

Expand All @@ -15,6 +15,15 @@ jobs:
- "13"
- "12"
- "10"
exclude:
- os: "macos-latest"
node: "13"
- os: "macos-latest"
node: "12"
- os: "windows-latest"
node: "13"
- os: "windows-latest"
node: "12"
include:
# only enable coverage on the fastest job
- os: "ubuntu-latest"
Expand Down
27 changes: 26 additions & 1 deletion .github/workflows/prod-test.yml
@@ -1,4 +1,4 @@
name: Prod_Test
name: Prod

on: [push, pull_request]

Expand Down Expand Up @@ -71,6 +71,31 @@ jobs:
standalone:
- "standalone"
- ""
exclude:
- os: "macos-latest"
node: "13"
standalone: "standalone"
- os: "macos-latest"
node: "12"
standalone: "standalone"
- os: "windows-latest"
node: "13"
standalone: "standalone"
- os: "windows-latest"
node: "12"
standalone: "standalone"
- os: "macos-latest"
node: "13"
standalone: ""
- os: "macos-latest"
node: "12"
standalone: ""
- os: "windows-latest"
node: "13"
standalone: ""
- os: "windows-latest"
node: "12"
standalone: ""
env:
STANDALONE: ${{ matrix.standalone }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} ${{ matrix.standalone }}
Expand Down
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -45,8 +45,12 @@ This is the branch containing code for Prettier’s 2.0 release. See [the `maste
<p align="center">
<a href="https://dev.azure.com/prettier/prettier/_build/latest?definitionId=5">
<img alt="Azure Pipelines Build Status" src="https://img.shields.io/azure-devops/build/prettier/79013671-677c-4846-a6d8-3050d40e21c0/5.svg?style=flat-square&label=build&branchName=master"></a>
<a href="https://github.com/prettier/prettier/actions">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod_Test?style=flat-square"></a>
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a>
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a>
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></a>
<a href="https://codecov.io/gh/prettier/prettier">
<img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
<a href="https://twitter.com/acdlite/status/974390255393505280">
Expand Down

0 comments on commit a3d7b80

Please sign in to comment.