Skip to content

Commit 931fa99

Browse files
committed
add actions
1 parent 0f3bd01 commit 931fa99

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
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 }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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)

0 commit comments

Comments
 (0)