Skip to content

Commit

Permalink
Merge pull request #178 from stark-contrast/dh/feat/STRK-1035-remove-…
Browse files Browse the repository at this point in the history
…cli-use

STRK-1035 refactor to stop using CLI
  • Loading branch information
dhrivnak authored Dec 11, 2024
2 parents 5cad007 + d4e389a commit 609918f
Show file tree
Hide file tree
Showing 34 changed files with 7 additions and 68,822 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

55 changes: 0 additions & 55 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/check-dist.yml

This file was deleted.

17 changes: 1 addition & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
npm install
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
urls: '
http://localhost:3000
https://nextjs.org/docs
'
prebuild: 'npx --yes create-next-app@latest test-app --use-npm --example "https://github.com/vercel/next-learn/tree/main/basics/learn-starter"'
serve: 'cd test-app && npm run dev'
docker build -t test .
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Dependency directory
node_modules
dist
lib

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

29 changes: 2 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
FROM node:18-slim
FROM starklabinc/accessibility-audit:1.2.0

# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
RUN apt-get update \
&& apt-get install -y wget gnupg \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Install bash and nvm as convenience
RUN apt-get install bash
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /stark_ga/entrypoint.sh
COPY dist /stark_ga/dist

# Install stark accessibility cli
RUN npm i -g @stark-lab-inc/[email protected] \
&& stark-accessibility --version

# TODO: symlink /root/.local-chromium to $GITHUB_HOME/.local-chromium to avoid double install or remove install from this step.
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/stark_ga/entrypoint.sh"]
ENTRYPOINT ["/stark_audit/github-entrypoint.sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Audit
id: stark
uses: stark-contrast/accessibility-check-action@beta
uses: stark-contrast/accessibility-check-action@1.2.0
with:
# [Optional; only required when used with Stark Projects]
# The token used by the action to send an audit report back to Stark.
Expand Down
3 changes: 0 additions & 3 deletions __tests__/main.test.ts

This file was deleted.

141 changes: 0 additions & 141 deletions __tests__/metadata.test.ts

This file was deleted.

Loading

0 comments on commit 609918f

Please sign in to comment.