Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EECI 6094: rename and add build and test workflow #52

Merged
merged 10 commits into from
Nov 20, 2023
59 changes: 59 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build and Test

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3

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

- name: Npm install
run: npm ci

- name: Npm build
run: npm run build

- name: Npm test
run: npm run test

- name: Generate dist
run: npm run dist

- name: Update dist
uses: Roblox-ActionsCache/EndBug-add-and-commit@v7
with:
author_name: GitHub Actions Bot
message: Updates the dist
add: dist

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- name: Test CLA Bot Action
uses: ./
env:
GITHUB_TOKEN: ${{ github.token }}
with:
branch: master
path-to-signatures: "signatures/cla.json"
whitelist: "cliffchapmanrbx"
use-remote-repo: true
remote-repo-name: "roblox/cla-bot-store"
remote-repo-pat: ${{ secrets.CLA_REMOTE_REPO_PAT }}
url-to-cladocument: "https://roblox.github.io/cla-bot-store/"
31 changes: 0 additions & 31 deletions .github/workflows/nodejs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ inputs:
signature-regex:
description: "The regex to locate the signature text. Should be single quoted. Note that comment bodies are toUpperCase'd before matching."
runs:
using: "node12"
using: "node16"
main: "dist/index.js"
Loading