Skip to content

Merge pull request #404 from observerly/feature/wcs/convertPixelToWor… #932

Merge pull request #404 from observerly/feature/wcs/convertPixelToWor…

Merge pull request #404 from observerly/feature/wcs/convertPixelToWor… #932

Workflow file for this run

name: astrometry/test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18, 20]
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout 🛎
uses: actions/checkout@master
# Setup .npmrc file to publish to GitHub Packages
- name: Setup node env 🏗 and .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file:
scope: '@observerly'
- name: Cache node_modules 📦
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install pnpm globally
run: npm install -g [email protected]
- name: Install project dependencies 👨🏻‍💻
run: pnpm install
- name: Build the package ready for publishing
run: pnpm run build
- name: Run vitest tests 🧪
run: pnpm run test