Skip to content

Commit

Permalink
feat(#1): add new git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kravalg committed Sep 10, 2023
1 parent 7d75f0c commit 86662a3
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 32 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Generate Changelog and Create Release

on:
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
output-file: "false"
version-file: "package.json"

- name: Create Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
45 changes: 45 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: codecov

on:
pull_request:
branches: [ "main" ]

jobs:
codecov:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}

- name: Cache pnpm dependencies
id: cache-pnpm-dependencies
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-dependencies-
- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm i --frozen-lockfile
if: |
steps.cache-pnpm-dependencies.outputs.cache-hit != 'true' ||
steps.cache-pnpm-packages.outputs.cache-hit != 'true'
- name: Run unit tests
run: pnpm run test:unit

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

24 changes: 0 additions & 24 deletions .github/workflows/load-testing.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: unit testing

on:
pull_request:
branches: [ "main" ]

jobs:
unit:
runs-on: ubuntu-latest
Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[![SWUbanner](./public/supportUkraine.svg)](https://supportukrainenow.org/)

# template for modern JavaScript applications
# Template for modern SPA applications

![Latest Stable Version](https://poser.pugx.org/VilnaCRM-Org/frontend-spa-template/v/stable.svg)
[![Test status](https://github.com/VilnaCRM-Org/frontend-spa-template/workflows/Tests/badge.svg)](https://github.com/VilnaCRM-Org/frontend-spa-template/actions)
[![codecov](https://codecov.io/gh/VilnaCRM-Org/frontend-spa-template/branch/main/graph/badge.svg?token=J3SGCHIFD5)](https://codecov.io/gh/VilnaCRM-Org/frontend-spa-template)
[![CodeScene Code Health](https://codescene.io/projects/39799/status-badges/code-health)](https://codescene.io/projects/39799)
[![CodeScene System Mastery](https://codescene.io/projects/39799/status-badges/system-mastery)](https://codescene.io/projects/39799)
[![CodeScene Code Health](https://codescene.io/projects/43861/status-badges/code-health)](https://codescene.io/projects/43861)
[![CodeScene System Mastery](https://codescene.io/projects/43861/status-badges/system-mastery)](https://codescene.io/projects/43861)
[![codecov](https://codecov.io/gh/VilnaCRM-Org/php-service-template/branch/main/graph/badge.svg?token=J3SGCHIFD5)](https://codecov.io/gh/VilnaCRM-Org/php-service-template)

## Possibilities

Expand Down Expand Up @@ -75,8 +73,6 @@ and before you ask a question,

[Tests](https://github.com/VilnaCRM-Org/frontend-spa-template/actions)

[![Test status](https://github.com/VilnaCRM-Org/frontend-spa-template/workflows/Tests/badge.svg)](https://github.com/VilnaCRM-Org/frontend-spa-template/actions)

If this isn't passing, is there something you can do to help?

## Security
Expand Down
Empty file removed artillery/.gitignore
Empty file.

0 comments on commit 86662a3

Please sign in to comment.