Revert "Back to Nix" #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main workflow | |
on: | |
- pull_request | |
- push | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Setup Esy | |
run: npm i -g esy | |
- name: Build | |
run: esy | |
- name: Test | |
run: esy test | |
- name: Upload the build artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.os }}-packsnap.exe | |
path: _esy/default/build/default/bin/main.exe | |
lint-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Setup Esy | |
run: npm i -g esy | |
- name: Lint doc | |
run: esy install && esy doc | |
lint-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Setup Esy | |
run: npm i -g esy | |
- name: Lint fmt | |
run: esy install && esy fmt |