diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index 35f1c62b..00000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Lint - -on: - push: - branches-ignore: - - main - -jobs: - lint: - runs-on: ubuntu-20.04 - timeout-minutes: 5 - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Fetch Git history - run: git fetch --no-tags --depth=50 origin main - - - name: Install dependencies - uses: bahmutov/npm-install@v1 - - - name: Lint - run: yarn lint - - - name: Check format - run: yarn format diff --git a/.github/workflows/markdown-link-check.yaml b/.github/workflows/markdown-link-check.yaml index a120a416..86fbd6e3 100644 --- a/.github/workflows/markdown-link-check.yaml +++ b/.github/workflows/markdown-link-check.yaml @@ -2,8 +2,6 @@ name: Markdown Link Check on: push: - branches-ignore: - - main schedule: - cron: '0 9 * * *' # every day at 9:00 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d8dade0c..c6d54271 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,11 +2,12 @@ name: Test on: push: - branches-ignore: - - main + schedule: + - cron: '0 9 * * *' # every day at 9:00 jobs: test: + name: Tests and linting runs-on: ubuntu-20.04 timeout-minutes: 5 @@ -25,9 +26,14 @@ jobs: - name: Install dependencies uses: bahmutov/npm-install@v1 - - name: Test + - name: Lint + run: yarn lint + + - name: Check code-style format + run: yarn format + + - name: Unit tests run: yarn test:unit - - name: Test Build + - name: Test build run: yarn build - diff --git a/README.md b/README.md index 70d4e608..1e43c29e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![npm version](https://img.shields.io/npm/v/@lmc-eu/cookie-consent-manager.svg)](https://www.npmjs.com/package/@lmc-eu/cookie-consent-manager) -![CI](https://github.com/lmc-eu/cookie-consent-manager/actions/workflows/lint.yaml/badge.svg) +[![CI](https://github.com/lmc-eu/cookie-consent-manager/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/lmc-eu/cookie-consent-manager/actions) # Cookie Consent Manager