From 5e6245dbed22d48a2ae899a28ebb86d014dd9f08 Mon Sep 17 00:00:00 2001 From: "Ademola." Date: Wed, 18 Dec 2024 19:08:07 +0000 Subject: [PATCH] feat: add github actions (#214) * feat: add github actions * fix: run actions on pr --- .codeclimate.yml | 1 - .github/workflows/build-main.yml | 18 ++++++++++++++++++ .nvmrc | 1 + .travis.yml | 25 ------------------------- readme.md | 7 ++++++- 5 files changed, 25 insertions(+), 27 deletions(-) delete mode 100644 .codeclimate.yml create mode 100644 .github/workflows/build-main.yml create mode 100644 .nvmrc delete mode 100644 .travis.yml diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 91f33ddf..00000000 --- a/.codeclimate.yml +++ /dev/null @@ -1 +0,0 @@ -Javascript: true \ No newline at end of file diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml new file mode 100644 index 00000000..99e24dd7 --- /dev/null +++ b/.github/workflows/build-main.yml @@ -0,0 +1,18 @@ +name: Build main + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test_push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + - run: yarn run build diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..8b0beab1 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.11.0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9c0454b3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: node_js - -os: - - linux - -dist: - - trusty - -node_js: - - '10' - - '12' - -install: - - npm install - -branches: - only: - - main - -script: - - npm run build - -cache: - directories: - - node_modules diff --git a/readme.md b/readme.md index 0dc1eb7d..1226b22e 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,10 @@

logo -

travis-ci codeclimate-gpa-badge codeclimate-issues-badge
+

+Build main +pullrequest +firsttimersonly +

Simple NextJS PWA boilerplate.

@@ -18,6 +22,7 @@ To learn more about Next.js, take a look at the following resources: - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. ## Deployment + ### ▲ Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fooade%2FNextSimpleStarter) from the creators of Next.js.