Skip to content

Merge pull request #100 from Alex4386/fix/repo-url-generation #149

Merge pull request #100 from Alex4386/fix/repo-url-generation

Merge pull request #100 from Alex4386/fix/repo-url-generation #149

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: turnoff-namuwiki CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-test:
name: Test Building
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn
- name: Run build
run: yarn build
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn
- name: Build the sourcecode
run: yarn build
- name: Build the artifact
run: |
chmod +x ./.github/workflows-resource/build-ci.sh
./.github/workflows-resource/build-ci.sh
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Artifact name
name: turnoff-namuwiki.zip
# A file, directory or wildcard pattern that describes what to upload
path: turnoff-namuwiki.zip