Skip to content

Commit

Permalink
Create node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSSenne authored Oct 17, 2023
1 parent 55a4700 commit c160996
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: produce

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: setup haxe
- run: apt install p7zip-full
- run: mkdir tools
- run: wget https://github.com/HaxeFoundation/haxe/releases/download/4.3.2/haxe-4.3.2-linux64.tar.gz -O ./tools/haxe.tar.gz
- run: tar xzvf ./tools/haxe.tar.gz -C ./tools
- run: ls ./tools
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn run build --if-present
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: bin # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: bin/**
# The desired behavior if no files are found using the provided path.

retention-days: 60 # optional

0 comments on commit c160996

Please sign in to comment.