Skip to content

Commit

Permalink
Merge pull request #25 from Omegapoint/feature/NewTesterTest3
Browse files Browse the repository at this point in the history
refactor project
  • Loading branch information
jonathanbokvad authored Sep 29, 2023
2 parents 7749f4f + e8fa68c commit 65a9bca
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 37 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
name: Test
name: test action
run-name: ${{ github.actor }} is running tests
permissions:
contents: read
pages: read
id-token: write

on: [push]
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
- name: Install
- name: Install dependencies
run: npm ci
- name: Build tests
run: npm run buildTests
- name: Build and run tests
run: npm run test
- name: Build Action
run: npm run build
- name: 'Run Compliance State Action'
uses: ./
with:
cydigConfigPath: ${{ github.workspace }}/src/cydigconfig.json
PAT-token: ${{ secrets.MY_GITHUB_PAT}}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/index.ts",
"buildTests": "tsc",
"test": "npm run buildTests && mocha dist/tests/",
"testScript": "npm run buildTests && mocha dist/tests/ --reporter xunit --reporter-option output=ResultsFile.xml",
"test": "tsc && mocha dist/tests/",
"testScript": "tsc && mocha dist/tests/ --reporter xunit --reporter-option output=ResultsFile.xml",
"prepare": "husky install",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --fix --ext .ts",
Expand Down

0 comments on commit 65a9bca

Please sign in to comment.