Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: test checks #104

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b8dc266
wip: test checks
arzola May 23, 2024
83adca4
wip: test checks
arzola May 23, 2024
0875a99
wip: build process
arzola May 23, 2024
e41454c
build: npm build [skip tests]
actions-user May 23, 2024
3d5c793
wip: amend commit
arzola May 23, 2024
b5402b5
Merge branch 'ci/update-workflow2' of github.com:pressbooks/fake-plug…
arzola May 23, 2024
2b17d02
chore(l10n): update pot file [skip tests]
actions-user May 23, 2024
578a46b
wip: triggering test
arzola May 23, 2024
f340a9d
wip: triggering test
arzola May 23, 2024
269d0a7
wip: triggering test
arzola May 23, 2024
f7ae759
wip: avoir
arzola May 23, 2024
ec80c98
wip: avoir
arzola May 23, 2024
58a70f7
Merge branch 'ci/update-workflow2' of github.com:pressbooks/fake-plug…
arzola May 23, 2024
a4a680a
wip: workflow run
arzola May 23, 2024
533ee3b
wip: workflow run
arzola May 23, 2024
bec3795
wip: workflow run
arzola May 23, 2024
dae70b5
wip: chain
arzola May 23, 2024
b388455
wip: chain
arzola May 23, 2024
0ea6335
Merge branch 'ci/update-workflow2' of github.com:pressbooks/fake-plug…
arzola May 23, 2024
3d8a543
wip: chain workflow
arzola May 23, 2024
dd67158
wip: chain workflow
arzola May 23, 2024
355adc9
wip: chain workflow
arzola May 23, 2024
2b1ef6d
Merge branch 'ci/update-workflow2' of github.com:pressbooks/fake-plug…
arzola May 23, 2024
22f6749
wip: chain npm wf
arzola May 23, 2024
7f5f7ed
wip: chain npm wof
arzola May 23, 2024
dc1c5d1
wip: test condition
arzola May 23, 2024
70bf145
wip: test chain
arzola May 23, 2024
a616071
wip: debug
arzola May 23, 2024
1bc4fac
wip: debug
arzola May 23, 2024
3cea4fd
wip: test name
arzola May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ensure-npm-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Npm build ⚙️
name: Npm build

on:
pull_request:
Expand All @@ -8,4 +8,13 @@ on:

jobs:
update-npm-build:
uses: pressbooks/reusable-workflows/.github/workflows/npm-build.yml@main
runs-on: ubuntu-latest
steps:
- name: List Workflows
run: |
curl -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows
- name: Commit and push built assets
run: |
echo "Building assets..., testing chain"
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Run Tests 🧪

on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:
workflow_run:
workflows: [ Npm build ]
types:
- completed

jobs:
plugin-tests:
uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@main
uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@fix/npm-commit
secrets: inherit
with:
requires_pressbooks: true
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/update-mo.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/update-pot.yml

This file was deleted.

1 change: 1 addition & 0 deletions build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build process completed successfully!
4 changes: 2 additions & 2 deletions languages/fake-plugin.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-22T23:45:05+00:00\n"
"POT-Creation-Date: 2024-05-23T17:56:31+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: pressbooks-fake-plugin\n"
Expand Down Expand Up @@ -40,7 +40,7 @@ msgid "Hello, people!"
msgstr ""

#: src/App.php:14
msgid "Hello, world 2!"
msgid "Hello, world 5!"
msgstr ""

#: src/App.php:19
Expand Down
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Hello world trigger 🚀 !! seems nice",
"main": "index.js",
"scripts": {
"build": "echo \"Build: ok\" && exit 0"
"build": "echo \"Starting build process...\" && echo \"Build process completed successfully!\" > build.txt"
},
"author": "",
"license": "ISC"
Expand Down
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function __construct()

public function __toString()
{
return __('Hello, world 2!', 'pressbooks-fake-plugin');
return __('Hello, world 5!', 'pressbooks-fake-plugin');
}

public function hi()
Expand Down
3 changes: 2 additions & 1 deletion src/assets/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
body{
margin: 0;
margin: 1px;
padding: 0;
}