Skip to content

Commit

Permalink
Add directory input test (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarmah authored Mar 17, 2024
1 parent 7028a7a commit 99ba48c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
directory:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Targets specific directory
uses: ./
with:
directory: "tests/action/directory/a/*"

- name: Compare the minified files
run: git diff --exit-code
7 changes: 7 additions & 0 deletions tests/action/directory/a/a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function print_hello() {
console.log('hello world from a');
}

window.addEventListener('load', function () {
print_hello();
});
1 change: 1 addition & 0 deletions tests/action/directory/a/a.min.js

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

7 changes: 7 additions & 0 deletions tests/action/directory/b/b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function print_hello() {
console.log('hello world from b');
}

window.addEventListener('load', function () {
print_hello();
});

0 comments on commit 99ba48c

Please sign in to comment.