mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-11 12:02:05 -05:00
ci: Run Workflows on Pull Request (#21)
This commit is contained in:
parent
1c50308a3f
commit
fa24b0e3ce
5 changed files with 32 additions and 12 deletions
3
.github/workflows/build_action.yaml
vendored
3
.github/workflows/build_action.yaml
vendored
|
|
@ -7,6 +7,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- name: Build action (if not already built)
|
- name: Build action (if not already built)
|
||||||
if: "!startsWith(github.ref, 'refs/heads/release')"
|
if: "!startsWith(github.ref, 'refs/heads/release')"
|
||||||
|
|
|
||||||
11
.github/workflows/directory.yml
vendored
11
.github/workflows/directory.yml
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
name: Test Directory Extraction
|
name: Test Directory Extraction
|
||||||
|
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
action:
|
action:
|
||||||
|
|
@ -12,6 +12,9 @@ jobs:
|
||||||
name: Extract Contents of Directory from Example Image
|
name: Extract Contents of Directory from Example Image
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -36,6 +39,9 @@ jobs:
|
||||||
name: Extract Nested Directory from Example Image
|
name: Extract Nested Directory from Example Image
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -56,6 +62,9 @@ jobs:
|
||||||
name: Extract Nested Contents of Directory from Example Image
|
name: Extract Nested Contents of Directory from Example Image
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
8
.github/workflows/file.yml
vendored
8
.github/workflows/file.yml
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
name: Test File Extraction
|
name: Test File Extraction
|
||||||
|
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
action:
|
action:
|
||||||
|
|
@ -12,6 +12,9 @@ jobs:
|
||||||
name: Extract Example File From Root of Built Image
|
name: Extract Example File From Root of Built Image
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -31,6 +34,9 @@ jobs:
|
||||||
name: Extract Nexted Example File From Built Image
|
name: Extract Nexted Example File From Built Image
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
3
.github/workflows/package-action.yaml
vendored
3
.github/workflows/package-action.yaml
vendored
|
|
@ -18,6 +18,9 @@ jobs:
|
||||||
ref: "${{ env.release }}"
|
ref: "${{ env.release }}"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- uses: pr-mpt/actions-merge-branch@v2
|
- uses: pr-mpt/actions-merge-branch@v2
|
||||||
with:
|
with:
|
||||||
from: "origin/${{ env.source }}"
|
from: "origin/${{ env.source }}"
|
||||||
|
|
|
||||||
19
.github/workflows/platforms.yml
vendored
19
.github/workflows/platforms.yml
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
name: Test Cross Platform Support
|
name: Test Cross Platform Support
|
||||||
|
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
action:
|
action:
|
||||||
|
|
@ -12,6 +12,9 @@ jobs:
|
||||||
name: Extract Example File on Ubuntu
|
name: Extract Example File on Ubuntu
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -31,18 +34,14 @@ jobs:
|
||||||
name: Extract Example File on macOS
|
name: Extract Example File on macOS
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Load action build from cache
|
- uses: actions/setup-node@v3
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
with:
|
||||||
path: dist
|
node-version: 16
|
||||||
key: build-${{ github.sha }}
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
env:
|
uses: douglascamata/setup-docker-macos-action@v1-alpha.6
|
||||||
HOMEBREW_GITHUB_API_TOKEN: "${{ github.token }}"
|
|
||||||
run: |
|
|
||||||
brew install docker colima
|
|
||||||
colima start
|
|
||||||
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run build
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue