Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches:
- develop
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-branch-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
branch:
uses: ./.github/workflows/ci-reusable.yml
with:
checkout-ref: ${{ github.event.pull_request.head.sha || github.sha }}
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read

concurrency:
group: ci-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
pull-request:
uses: ./.github/workflows/ci-reusable.yml
with:
checkout-ref: ''
secrets: inherit
38 changes: 38 additions & 0 deletions .github/workflows/ci-reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI Pipeline

on:
workflow_call:
inputs:
checkout-ref:
description: 'Git ref to checkout (empty for default merge commit)'
type: string
required: false
default: ''

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['lts/*', 'node']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout-ref || github.ref }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install project dependencies
run: npm install

- name: Run ESLint
run: npm run lint -- --report-unused-disable-directives --max-warnings 0
23 changes: 23 additions & 0 deletions .github/workflows/update-copyright-years.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update copyright year(s) in license file

on:
schedule:
- cron: "20 8 12 1 *"

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: develop
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: README.md
branchName: license/{{currentYear}}
commitTitle: update license
commitBody: Let's keep legal happy.
prTitle: Update copyright years in README.md file
prBody: It's that time of the year, let's update the license.
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading