Skip to content

Commit

Permalink
Merge pull request #1 from damo-e99/feature/add-pipeline
Browse files Browse the repository at this point in the history
Feature/add pipeline
  • Loading branch information
damo-e99 authored Aug 21, 2024
2 parents 97244f2 + f7b3df2 commit 5d6d501
Show file tree
Hide file tree
Showing 8 changed files with 5,349 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
node: true
commonjs: true
es6: true
jest: true
extends:
- eslint:recommended
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
rules:
no-trailing-spaces: "error"

24 changes: 24 additions & 0 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab 4 CI Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
reports
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
reporters: [
'default',
['jest-junit', { outputDirectory: 'reports', outputName: 'report.xml' }],
],
};

Loading

0 comments on commit 5d6d501

Please sign in to comment.