File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
12
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+
9+ jobs :
10+ lint-and-test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Use Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 18
20+
21+ - run : npm install
22+
23+ - name : Run ESLint
24+ run : npm run lint
25+
26+ - name : Run Jest
27+ run : npm test -- --coverage
28+
29+ - name : SonarCloud Scan
30+ uses : SonarSource/sonarcloud-github-action@v2
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 1+ # RSS Aggregator
2+
3+ [ ![ .github/workflows/ci.yml] ( https://github.com/olgarozmetova/frontend-project-11/actions/workflows/ci.yml/badge.svg )] ( https://github.com/olgarozmetova/frontend-project-11/actions/workflows/ci.yml )
4+
15### Hexlet tests and linter status:
26
37[ ![ Actions Status] ( https://github.com/olgarozmetova/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg )] ( https://github.com/olgarozmetova/frontend-project-11/actions )
You can’t perform that action at this time.
0 commit comments