Skip to content

ci: Add alpine-based Dockerfile for integration-testing package scripts #28

ci: Add alpine-based Dockerfile for integration-testing package scripts

ci: Add alpine-based Dockerfile for integration-testing package scripts #28

Workflow file for this run

name: CI-Docker
on: [push, pull_request]
permissions:
contents: read
jobs:
test-dev-alpine:
name: test-dev-alpine
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2
with:
driver: docker-container
driver-opts: |
image=docker.io/moby/buildkit:master@sha256:1b6abfd9bbfbf129245dc1f288aa38f064dfee8d608b8be9086936f5580c78f2
- name: Build OCI image
uses: docker/build-push-action@v5
with:
cache-from: type=${{ env.ACT && 'local,src=/var/cache/act' || gha }}

Check failure on line 23 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / CI-Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 23, Col: 23): Unrecognized named-value: 'gha'. Located at position 42 within expression: env.ACT && 'local,src=/var/cache/act' || gha .github/workflows/docker.yml (Line: 24, Col: 21): Unrecognized named-value: 'gha'. Located at position 43 within expression: env.ACT && 'local,dest=/var/cache/act' || gha
cache-to: type=${{ env.ACT && 'local,dest=/var/cache/act' || gha }},mode=max
context: .
file: test/integration/Dockerfile-alpine
load: true
push: false
tags: dev:latest
- name: lint
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
image: dev:latest
run: 'npm run lint && npm run lint:fix'
- name: publish
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
env:
VERDACCIO_STORAGE_PATH: /app/verdaccio/storage
with:
image: dev:latest
run: >
git init -b main &&
git add package.json packages/*/package.json &&
git commit -m 'feat!: Add manifests' &&
npm ci &&
(verdaccio &) &&
sleep 7 &&
npm set registry http://localhost:4873 &&
sh -c '(echo user; sleep 0.5; echo password; sleep 0.5; echo email@example.com) | npm --registry=http://localhost:4873 adduser --auth-type legacy' &&
npm run release:publish
- name: rebuild
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
image: dev:latest
run: npm run setup && npm run rebuild
- name: lint:git
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
image: dev:latest
run: >
git init -b main &&
git add README.md && npm run lint:staged &&
git commit -m 'docs: Add README.md' && npm run lint:commit -- -e
- name: test
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
image: dev:latest
run: npm run test:prep && npm run test