mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2025-12-09 14:30:42 -07:00
Update node_modules
This commit is contained in:
53
.github/workflows/ci.yml
vendored
Normal file
53
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
version: latest
|
||||
file: https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-linux-amd64
|
||||
- os: windows-latest
|
||||
version: latest
|
||||
file: https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-windows-4.0-amd64.exe
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
-
|
||||
name: Download file
|
||||
id: download
|
||||
run: |
|
||||
mkdir ./bin
|
||||
if [ "${{ matrix.os }}" == "windows-latest" ]; then
|
||||
curl -sSLk ${{ matrix.file }} -o ./bin/firefox-history-merger.exe
|
||||
echo ::set-output name=filename::./bin/firefox-history-merger.exe
|
||||
else
|
||||
curl -sSLk ${{ matrix.file }} -o ./bin/firefox-history-merger
|
||||
chmod +x ./bin/firefox-history-merger
|
||||
echo ::set-output name=filename::./bin/firefox-history-merger
|
||||
fi
|
||||
shell: bash
|
||||
-
|
||||
name: UPX
|
||||
uses: ./
|
||||
with:
|
||||
version: ${{ matrix.version }}
|
||||
file: ${{ steps.download.outputs.filename }}
|
||||
args: -fq
|
||||
35
.github/workflows/test.yml
vendored
Normal file
35
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- releases/*
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
steps:
|
||||
-
|
||||
# https://github.com/actions/checkout
|
||||
name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
-
|
||||
name: Install
|
||||
run: npm ci
|
||||
-
|
||||
name: Build
|
||||
run: npm run build
|
||||
-
|
||||
name: Test
|
||||
run: npm run test
|
||||
Reference in New Issue
Block a user