You've already forked tf2wikipricing
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
tags-ignore:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: debian-latest
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4.1.2
|
|
- name: Read package version
|
|
uses: tyankatsu0105/read-package-version-actions@v1
|
|
id: version
|
|
- name: Install dependencies
|
|
run: bun install
|
|
- name: Test UserScript version
|
|
run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' --define __ENV_USERSCRIPT=1 --define __ENV_WEBEXTENSION=0
|
|
- name: Test WebExtension version
|
|
run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' --define __ENV_USERSCRIPT=0 --define __ENV_WEBEXTENSION=1
|
|
- name: Build project
|
|
run: bun run build
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tf2wikipricing
|
|
path: dist/ |