Skip to content

Commit

Permalink
Add new github action for pull-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikelElizondo committed Feb 22, 2024
1 parent 91c1492 commit f42e794
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Build site
run: npm run build
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test deployment

on:
pull_request:
branches:
- main

jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Test build website
run: npm run build

0 comments on commit f42e794

Please sign in to comment.