Skip to content

Commit

Permalink
test 1: Disable c8
Browse files Browse the repository at this point in the history
  • Loading branch information
CxRes committed Aug 30, 2024
1 parent 7b23e57 commit b7e2713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 55 deletions.
56 changes: 2 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CI

on:
push:
branches: [ main ]
branches: [ basic-prep-test ]
tags: ['*']
pull_request:
branches: [ main ]
Expand Down Expand Up @@ -40,61 +40,9 @@ jobs:
# test code
- run: npm run standard
- run: npm run validate
- run: npm run c8
# - run: npm run c8
# Test global install of the package
- run: npm pack .
- run: npm install -g solid-server-*.tgz
# Run the Solid test-suite
- run: bash test/surface/run-solid-test-suite.sh $BRANCH_NAME

# TODO: The pipeline should automate publication to npm, so that the docker build gets the correct version
# This job will only dockerize solid-server@latest / solid-server@<tag-name> from npmjs.com!
docker-hub:
needs: build
name: Publish to docker hub
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v?(?<version>.*)"

- name: Lint dockerfile
working-directory: docker-image
run: pwd && ls -lah && make lint

- name: Run tests
working-directory: docker-image
run: SOLID_SERVER_VERSION=${{ steps.tagName.outputs.version }} make test

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: nodesolidserver/node-solid-server

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./docker-image/src
build-args: SOLID_SERVER_VERSION=${{ steps.tagName.outputs.version }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion test/surface/docker/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:latest
ARG BRANCH=main
RUN echo Testing branch ${BRANCH} of NSS
RUN git clone https://github.com/nodeSolidServer/node-solid-server
RUN git clone https://github.com/cxres/node-solid-server
WORKDIR node-solid-server
RUN git checkout ${BRANCH}
RUN git status
Expand Down

0 comments on commit b7e2713

Please sign in to comment.