Skip to content

Commit

Permalink
Fixes compression (#1)
Browse files Browse the repository at this point in the history
* Adds tar test

* changes to action.js

* change test file dist/index.js

* fix

* check test

* adds test.js

* Fixes build

* change outPath

* fix test

* fix path of directory

* fix test

* move to parcel

* change dist

* downgrade core

* fix index.

* change test

* fix index.js

* change to pr
  • Loading branch information
a7ul authored Feb 21, 2020
1 parent db834d5 commit c2ecce8
Show file tree
Hide file tree
Showing 11 changed files with 113 additions and 6,745 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Compress action step
uses: ./ # Uses an action in the root directory
id: compress
with:
command: c
cwd: ./test
files: |
./toCompress
outPath: yolo.tar.gz
# Use the output from the `compress` step
- name: Get the output
run: echo "The output was ${{ steps.compress.outputs.done }}"
- uses: actions/upload-artifact@v1
with:
name: yolo.tar.gz
path: yolo.tar.gz
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
*.log
.vscode
.vscode
.cache
dist
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ inputs:
files:
description: "List of files or folders to archive"
required: true
archiveName:
description: "Name of the archive (ex: abc.tar.gz)"
outPath:
description: "Path of the output archive (ex: abc.tar.gz)"
required: true
outputs:
done:
Expand Down
Loading

0 comments on commit c2ecce8

Please sign in to comment.