Skip to content

Commit

Permalink
Fix indentation in github action examples
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmurray-codecov committed Dec 19, 2024
1 parent 3263fdc commit 32d8aeb
Showing 1 changed file with 112 additions and 112 deletions.
224 changes: 112 additions & 112 deletions src/pages/RepoPage/CoverageOnboarding/UseFrameworkInstructions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,36 @@ export function UseFrameworkInstructions({
githubActionsWorkflow: `name: Run tests and upload coverage
on:
push
push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npx jest --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npx jest --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
`,
},
Vitest: {
Expand All @@ -60,36 +60,36 @@ slug: ${owner}/${repo}`
githubActionsWorkflow: `name: Run tests and upload coverage
on:
push
push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npx vitest run --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npx vitest run --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
`,
},
Pytest: {
Expand All @@ -98,36 +98,36 @@ slug: ${owner}/${repo}`
githubActionsWorkflow: `name: Run tests and upload coverage
on:
push
push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install pytest pytest-cov
- name: Run tests
run: pytest --cov-branch --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install pytest pytest-cov
- name: Run tests
run: pytest --cov-branch --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
`,
},
Go: {
Expand All @@ -136,36 +136,36 @@ slug: ${owner}/${repo}`
githubActionsWorkflow: `name: Run tests and upload coverage
on:
push
push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -coverprofile=coverage.txt
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -coverprofile=coverage.txt
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: \${{ secrets.CODECOV_TOKEN }}${
orgUploadToken
? `
slug: ${owner}/${repo}`
: ''
}
`,
},
}),
Expand Down

0 comments on commit 32d8aeb

Please sign in to comment.