Skip to content

Commit

Permalink
Merge pull request #10 from awslabs/add-github-actions
Browse files Browse the repository at this point in the history
Add basic workflow for linting and running CDK tests.
  • Loading branch information
KyleLilly authored May 15, 2024
2 parents 34a0369 + ee746ba commit 6dbef29
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test

on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
cdk-build:
name: CDK Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: |
npm install
- name: Run tests
run: |
npm run test
pre-commit:
name: Run All Pre-Commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install Chatbot dependencies
working-directory: ./lib/user-interface/react
run: |
npm install
- name: Install CDK dependencies
working-directory: ./
run: |
npm install
- uses: pre-commit/[email protected]

0 comments on commit 6dbef29

Please sign in to comment.