Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jul 27, 2023
1 parent 4ff0d8a commit e862800
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: build

on:
push:
branches: [ master, 2.x ]
pull_request:
branches: [ master, 2.x ]

jobs:
build:
timeout-minutes: 12

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [lts/*, 19.x, 18.x, 16.x, 14.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm run test

18 changes: 18 additions & 0 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "TODO"
on: ["push"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@master"
- name: "todo-to-issue"
uses: "senecajs/todo-to-issue-action@master"
with:
REPO: ${{ github.repository }}
BEFORE: ${{ github.event.before }}
SHA: ${{ github.sha }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: "TODO:"
COMMENT_MARKER: "//"
INCLUDE_EXT: ".js,.ts,.md"
id: "todo"

0 comments on commit e862800

Please sign in to comment.