Page MenuHomeSoftware Heritage

No OneTemporary

diff --git a/.github/workflows/ci.yml b/.github/workflows/deploy.yml
similarity index 86%
rename from .github/workflows/ci.yml
rename to .github/workflows/deploy.yml
index 212276c..56e8e2c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/deploy.yml
@@ -1,43 +1,46 @@
-# Simple workflow for deploying static content to GitHub Pages
-name: Deploy static content to Pages
+name: Run Cypress tests and deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
- # Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name:
+ runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..9e6bd7d
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,28 @@
+name: Run Cypress tests
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Setup nodejs
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ cache: 'npm'
+
+ - name: Install Cypress
+ run: |
+ npm install cypress"
+ $(npm bin)/cypress install
+
+ - name: Run Cypress
+ run: |
+ $(npm bin)/cypress run
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 380eba9..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-language: node_js
-node_js:
- - 10
-addons:
- apt:
- packages:
- - libgconf-2-4
-cache:
- npm: true
- directories:
- - ~/.cache
-install:
- - npm install cypress
- - $(npm bin)/cypress install
-script:
- - $(npm bin)/cypress run

File Metadata

Mime Type
text/x-diff
Expires
Jul 4 2025, 7:48 AM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3213988

Event Timeline