Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove azure pipelines #7824

Merged
merged 40 commits into from Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
412bb10
Followup work on setup github actions
fisker Jan 25, 2020
d49207d
Coverage report & split `prod_lint`
fisker Jan 25, 2020
254278e
Add env
fisker Jan 25, 2020
2735e45
Remove coverage report on azure pipelines
fisker Jan 25, 2020
ad855a1
Remove build step on lint
fisker Jan 25, 2020
273381d
remove coverage report on prod_test
fisker Jan 25, 2020
d55836f
Use `ci-info` instead of `is-ci`
fisker Jan 25, 2020
3ff3798
Always enable `ENABLE_TEST_RESULTS` and `AST_COMPARE` on CI
fisker Jan 25, 2020
689e14e
Merge branch 'ci-env' into adjust-github-actions
fisker Jan 25, 2020
d38e456
Standalone test and remove some env
fisker Jan 25, 2020
19d8967
coverage report
fisker Jan 25, 2020
6f55df1
reduce matrix
fisker Jan 25, 2020
7df8ef8
Merge branch 'next' into adjust-github-actions
fisker Feb 14, 2020
9275fc2
standalone test
fisker Feb 14, 2020
f1133ad
Merge branch 'next' into adjust-github-actions
fisker Feb 14, 2020
a63f1a5
Merge branch 'next' into adjust-github-actions
fisker Mar 17, 2020
ce57952
`ci-info`
fisker Mar 17, 2020
5edd2de
Remove token
fisker Mar 17, 2020
404c81c
Disable `coverage` on azure pipelines
fisker Mar 17, 2020
7815cc5
use master version of codecov-action
fisker Mar 17, 2020
838e0f7
Link to master status
fisker Mar 17, 2020
767ffb6
fix prod lint
fisker Mar 17, 2020
869bf20
Use boolean env
fisker Mar 17, 2020
57ecc9a
Remove locv report
fisker Mar 17, 2020
3dcbf7d
Merge branch 'next' into adjust-github-actions
fisker Mar 18, 2020
7e61875
Try lcov report
fisker Mar 18, 2020
53f55fa
pin `codecov-action` version, enable `verbose`
fisker Mar 18, 2020
293c0c7
Merge branch 'next' into adjust-github-actions
fisker Mar 19, 2020
f2fb408
azure coverage
fisker Mar 19, 2020
e13fc68
Name
fisker Mar 19, 2020
a2acc7e
Trigger CI
fisker Mar 19, 2020
777253f
Use `basename`
fisker Mar 20, 2020
8e7f033
Trigger CI
fisker Mar 20, 2020
ac38ef0
Try `runInBand`
fisker Mar 21, 2020
173a068
Merge branch 'adjust-github-actions' of 13.114.40.48:fisker/prettier …
fisker Mar 21, 2020
a6e476a
try `maxWorkers`
fisker Mar 21, 2020
c2bf918
Merge branch 'master' into adjust-github-actions
thorn0 Mar 21, 2020
cb06897
Remove azure pipelines
fisker Mar 22, 2020
7e36799
clean up
fisker Mar 22, 2020
2a3bb70
Merge branch 'master' into remove-azure-pipelines
fisker Mar 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 0 additions & 17 deletions .azure-pipelines/jobs/dev-lint.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .azure-pipelines/jobs/dev-test.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .azure-pipelines/jobs/prod-build.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .azure-pipelines/jobs/prod-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .azure-pipelines/jobs/prod-pack.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .azure-pipelines/jobs/prod-test.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .azure-pipelines/steps/download-dist.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .azure-pipelines/steps/install-dependencies.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .azure-pipelines/steps/install-nodejs.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .azure-pipelines/steps/publish-code-coverage.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .azure-pipelines/steps/publish-test-results.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .azure-pipelines/steps/upload-dist.yml

This file was deleted.

29 changes: 21 additions & 8 deletions .github/workflows/dev-test.yml
@@ -1,9 +1,9 @@
name: Dev_Test
name: Dev

on: [pull_request]
on: [push, pull_request]

jobs:
dev_test:
test:
strategy:
fail-fast: false
matrix:
Expand All @@ -15,8 +15,14 @@ jobs:
- "13"
- "12"
- "10"

name: Dev test on node ${{ matrix.node }} and ${{ matrix.os }}
include:
# only enable coverage on the fastest job
- os: "ubuntu-latest"
node: "12"
ENABLE_CODE_COVERAGE: true
env:
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -27,10 +33,17 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.NODE }}
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run Test
run: yarn test
- name: Run Tests
run: yarn test --maxWorkers=4

- name: Upload Coverage
uses: codecov/codecov-action@v1
if: matrix.ENABLE_CODE_COVERAGE
with:
file: ./coverage/lcov.info
fail_ci_if_error: true
15 changes: 9 additions & 6 deletions .github/workflows/lint.yml
@@ -1,6 +1,6 @@
name: Lint

on: [pull_request]
on: [push, pull_request]

jobs:
lint:
Expand All @@ -20,20 +20,23 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Check dependencies
- name: Check Dependencies
run: yarn lint:deps

- name: Check JSDoc types
- name: Check JSDoc Types
run: yarn lint:typecheck

- name: Lint code
- name: Lint ESLint
run: yarn lint:eslint

- name: Lint prettier
- name: Lint Prettier
run: yarn lint:prettier

- name: Spellcheck
run: yarn lint:spellcheck

- name: Check file changes
- name: Lint Changelog
run: yarn lint:changelog

- name: Check Lock File Changes
run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint."
76 changes: 71 additions & 5 deletions .github/workflows/prod-test.yml
@@ -1,6 +1,6 @@
name: Prod_Test
name: Prod

on: [pull_request]
on: [push, pull_request]

jobs:
build:
Expand Down Expand Up @@ -29,7 +29,34 @@ jobs:
name: dist
path: dist

prod_test:
lint:
name: Lint
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: dist
path: dist

- name: Lint Code
run: yarn lint:dist

test:
strategy:
fail-fast: false
matrix:
Expand All @@ -41,8 +68,47 @@ jobs:
- "13"
- "12"
- "10"
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: dist
path: dist

- name: Run Tests
run: yarn test:dist

name: Prod test on node ${{ matrix.node }} and ${{ matrix.os }}
standalone:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
node:
- "13"
- "12"
- "10"
env:
STANDALONE: true
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} (standalone)
runs-on: ${{ matrix.os }}
needs: [build]
steps:
Expand All @@ -65,5 +131,5 @@ jobs:
name: dist
path: dist

- name: Run Test
- name: Run Tests
run: yarn test:dist
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+branch%3Amaster">
<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+branch%3Amaster">
<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+branch%3Amaster">
<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