mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-02-09 03:45:23 +00:00
42 lines
848 B
YAML
42 lines
848 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Generate artifacts
|
|
run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh
|
|
shell: bash
|
|
|
|
- name: Upload artifacts
|
|
uses: ./
|
|
with:
|
|
path: artifact
|
|
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: github-pages
|
|
path: artifact2
|
|
|
|
- name: Extract artifacts
|
|
run: tar -xf artifact2/artifact.tar -C artifact2 && rm artifact2/artifact.tar
|
|
shell: bash
|
|
|
|
- name: Compare artifacts
|
|
run: diff -qr artifact artifact2
|
|
shell: bash
|