Skip to content

Commit

Permalink
chore(ci): add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Feb 9, 2024
1 parent f8907d2 commit c67cd0c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build, Lint, Test

on:
push:
branches:
- main
pull_request:

concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: truew

jobs:
build_lint_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# Can't cache, since we don't commit the lockfile
node-version: 20

# Execute build multiple times if it fails. We haven't correctly set up correct composed package builds, so initial builds may fail
- name: "Build"
uses: nick-fields/[email protected]
with:
max_attempts: 5
timeout_minutes: 15
retry_on: error
command: npm run build:ws

- name: "Lint"
run: |
npm run lint:ci:ws
- name: "Test"
run: |
npm run test:ws
check-licenses:
uses: lightbasenl/platforms/.github/workflows/lib-license-checker.yml@main
with:
envs:
ACC:
environment_variables:
TENANT_ORIGIN: foo.bar.com

0 comments on commit c67cd0c

Please sign in to comment.