Skip to content

Commit

Permalink
Run demo GitHub Action in parallel (#2484)
Browse files Browse the repository at this point in the history
* Run demo GitHub Action in parallel

* Fix path of action yml

* Move checkout to demo action

* Prettier format

* Specifying shell

* Try to fix uses

* Fix spelling issue

* Fix demo

* Downloading artifacts too unreliable

Building instead

* Re-name step

Re-use action elsewhere
  • Loading branch information
dolanmiu authored Dec 25, 2023
1 parent 6b6f9d7 commit 10b87b5
Show file tree
Hide file tree
Showing 5 changed files with 772 additions and 764 deletions.
12 changes: 12 additions & 0 deletions .github/actions/install-and-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Install dependencies and build ⚙️
description: Install dependencies and build

runs:
using: composite
steps:
- name: Install Dependencies
shell: bash
run: npm ci --force
- name: Build
shell: bash
run: npm run build
14 changes: 14 additions & 0 deletions .github/actions/validate-docx/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Extract and Validate Document ⚙️
description: Extract the document and validate the XML against the schema.

runs:
using: composite
steps:
- name: Extract Word Document
shell: bash
run: npm run extract
- name: Validate XML
uses: ChristophWurst/xmllint-action@v1
with:
xml-file: build/extracted-doc/word/document.xml
xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd
5 changes: 1 addition & 4 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm ci --force
- name: Build
run: npm run build
- uses: "./.github/actions/install-and-build"
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
Expand Down
Loading

0 comments on commit 10b87b5

Please sign in to comment.