Skip to content

Commit

Permalink
Merge pull request #4 from irvv17/feature-actions
Browse files Browse the repository at this point in the history
feat(actions): add deployment action
  • Loading branch information
irving-caamal authored Apr 1, 2021
2 parents 1e04c20 + 3b94324 commit c48457c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test and Build Workflow

on:
pull_request:
branches:
- master
- main
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

# Cache node modules and next folder
- name: 📬 Caching
uses: actions/cache@v2
with:
path: |
**/node_modules
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: 🧰 Install dependencies
run: npm install

- name: 📦 Build project
run: npm run build --if-present

# - name: 🧹 Run lint
# run: npm run lint

# - name: 🐛 Run tests
# run: npm run test
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": 2
}

1 comment on commit c48457c

@vercel
Copy link

@vercel vercel bot commented on c48457c Apr 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.