From 758537b185c2cad8f6990f9e0a2b107966dc831e Mon Sep 17 00:00:00 2001 From: maddie <715921+megamaddu@users.noreply.github.com> Date: Sat, 14 May 2022 21:38:07 -0700 Subject: [PATCH] gitlab ci --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 15 ---------- package.json | 7 +---- packages.dhall | 4 +-- 4 files changed, 67 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8e8feaa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up PureScript toolchain + uses: purescript-contrib/setup-purescript@v2.0.0 + with: + purescript: "0.15.0" + purs-tidy: "latest" + + - name: Cache PureScript dependencies + uses: actions/cache@v2 + with: + key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} + path: | + .spago + output + - name: Set up Node toolchain + uses: actions/setup-node@v2 + with: + node-version: "14.x" + + - name: Cache NPM dependencies + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Install NPM dependencies + run: npm install + + - name: Build the project + run: npm run build + + - name: Run tests + run: npm run test + + # - name: Check formatting + # run: purs-tidy check src test + + - name: Verify Bower & Pulp + run: | + npm install bower pulp@16.0.0-0 + npx bower install + npx pulp build -- --censor-lib --strict + if [ -d "test" ]; then + npx pulp test + fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c7b9196..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -dist: trusty -sudo: required -language: node_js -node_js: - - node - - "lts/*" - -cache: npm - -install: - - npm ci - - npm run deps - -script: - - npm run build diff --git a/package.json b/package.json index 9da024c..7d57c3c 100644 --- a/package.json +++ b/package.json @@ -24,12 +24,7 @@ "react": "^18.1.0" }, "scripts": { - "deps": "run-s deps:*", - "deps:spago": "spago install", - "deps:pulp": "bower install", - "build": "run-s build:*", - "build:spago": "spago build", - "build:pulp": "pulp build -o output-pulp", + "build": "spago build", "clean": "rm -rf .spago bower_components output output-pulp node_modules" } } diff --git a/packages.dhall b/packages.dhall index c4df593..e51832b 100644 --- a/packages.dhall +++ b/packages.dhall @@ -1,5 +1,5 @@ let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220510/packages.dhall - sha256:0b0d4db1f2f0acd3b37fa53220644ac6f64cf9b5d0226fd097c0593df563d5be + https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220513/packages.dhall + sha256:1ed784f37ae6131d99acd542d058d5ce39954ccaacc3adba5cc7cf1549d2bffa in upstream pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy