-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.4 KB
/
hexlet-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##########################################################################
# DO NOT DELETE OR EDIT THIS FILE #
# This file is automatically generated and used to run tests #
##########################################################################
name: hexlet-check
on:
push:
branches:
- '**'
tags:
- '**'
env:
CI: true
jobs:
build:
# The type of machine to run the job on
runs-on: ubuntu-latest
strategy:
# Node versions list
matrix:
node-version: [20.x]
steps:
# Checkout repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# Step's name
- name: Hexlet project check
uses: hexlet/project-action@release
# The Node.js version to configure
with:
hexlet-id: ${{ secrets.HEXLET_ID }}
node-version: ${{ matrix.node-version }}
- run: make install
- run: make lint
- run: make test
- name: Test & publish code coverage
# Publish code coverage on Code Climate
# https://github.com/paambaati/codeclimate-action
uses: paambaati/codeclimate-action@v5.0.0
# Add Code Climate secret key
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage
debug: true