Skip to content

0.4.1

0.4.1 #96

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ "master", "dev" ]
paths:
- "**.ts"
- "package.json"
- "package-lock.json"
- "tsconfig.json"
- ".github/workflows/tests.yml"
pull_request:
branches: [ "master", "dev" ]
paths:
- "**.ts"
- "package.json"
- "package-lock.json"
- "tsconfig.json"
- ".github/workflows/tests.yml"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Get Tumblr access token
id: auth
uses: MarkSuckerberg/[email protected]
with:
secrets-token: ${{ secrets.SECRETS_ACCESS_TOKEN }}
tumblr-refresh-token: ${{ secrets.TUMBLR_REFRESH_TOKEN }}
tumblr-client-id: ${{ secrets.TUMBLR_CLIENT_ID }}
tumblr-client-secret: ${{ secrets.TUMBLR_CLIENT_SECRET }}
token-name: TUMBLR_REFRESH_TOKEN
user-agent: "Typeble-Auth/1.1.0"
- run: npm ci
- run: npm run lint
- run: npm run test:ci -- --coverage
env:
TUMBLR_TOKEN: ${{ steps.auth.outputs.tumblr-token }}
CONSUMER_ID: ${{ secrets.TUMBLR_CLIENT_ID }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3