Skip to content

Commit

Permalink
update git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iZooGooD committed Jan 7, 2024
1 parent b660ac2 commit 050bb85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -21,10 +20,17 @@ jobs:

steps:
- uses: actions/checkout@v3

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

- run: npm ci

- name: Check code formatting with Prettier
run: |
npx prettier --check "src/**/*.{js,jsx,ts,tsx,json,css,md}"
- run: npm test
2 changes: 0 additions & 2 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});

0 comments on commit 050bb85

Please sign in to comment.