Skip to content

Commit 9e59626

Browse files
committed
Inline the matrix test steps
1 parent 9438731 commit 9e59626

File tree

1 file changed

+52
-3
lines changed

1 file changed

+52
-3
lines changed

.github/workflows/tests.yml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,58 @@ jobs:
3232
test_chapter_16_javascript,
3333
unit-test
3434
]
35+
3536
steps:
3637
- uses: actions/checkout@v4
37-
- id: foo
38-
uses: hjwp/github-actions@v8
38+
39+
- name: checkout submodules
40+
shell: bash
41+
run: |
42+
sed -i '[email protected]:_https://github.com/_' .gitmodules
43+
git submodule update --init --recursive
44+
45+
- name: setup Git
46+
shell: bash
47+
run: |
48+
git config --global user.email "[email protected]"
49+
git config --global user.name "Elspeth See-Eye"
50+
git config --global init.defaultBranch main
51+
52+
- name: Set up Python 3.12
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: 3.12
56+
57+
- name: Install apt stuff and other dependencies
58+
shell: bash
59+
run: |
60+
sudo add-apt-repository ppa:mozillateam/ppa
61+
sudo apt update -y
62+
sudo apt install -y \
63+
asciidoctor \
64+
language-pack-en \
65+
ruby-coderay \
66+
ruby-pygments.rb \
67+
firefox-esr \
68+
tree \
69+
locales
70+
sudo locale-gen en_GB.UTF-8
71+
72+
- name: Install Python requirements.txt
73+
shell: bash
74+
run: |
75+
pip install .
76+
77+
- name: Run chapter test
78+
shell: bash
79+
run: |
80+
make ${{ matrix.test_chapter }}
81+
82+
- name: Archive the built html files
83+
uses: actions/upload-artifact@v4
84+
if: always()
3985
with:
40-
test_chapter: ${{ matrix.test_chapter }}
86+
name: built-html-${{ matrix.test_chapter }}
87+
path: |
88+
*.html
89+
*.css

0 commit comments

Comments
 (0)