Skip to content

Commit

Permalink
Merge pull request #14 from 2308-Bread/feat/CI-GA
Browse files Browse the repository at this point in the history
Add github workflow with github actions
  • Loading branch information
rsteckline authored Feb 3, 2024
2 parents d3a6382 + 610afa4 commit be110e3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI

on:
push:
branches: main
pull_request:
branches: main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.15.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Run CI command
run: npm ci

- name: Run the tests
run: npm run test

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "echo \"Skipping tests\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
9 changes: 0 additions & 9 deletions src/components/App/App.test.tsx

This file was deleted.

0 comments on commit be110e3

Please sign in to comment.