diff --git a/.github/workflows/cll.yml b/.github/workflows/cll.yml index e9de17e..d957fb0 100644 --- a/.github/workflows/cll.yml +++ b/.github/workflows/cll.yml @@ -1,53 +1,13 @@ -name: Node.js CI/CD - -on: - push: - branches: [ main ] - schedule: - - cron: '0 0 * * *' # Scheduled to run every day at midnight - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x, 14.x, 16.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: npm ci - - - name: Run tests - run: npm test - - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 14.x - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Deploy to Cloud - run: | - echo "Deploying to the cloud..." - # Here you would typically have a script or command that deploys your application - # For example: - # npm run deploy \ No newline at end of file +- name: Deploy to Cloud + run: | + echo "Deploying to the cloud..." + # Here you would typically have a script or command that deploys your application + # For example: + # npm run deploy + # Use the GitHub token to perform actions on GitHub + echo "Using GitHub token to perform actions on GitHub..." + # For example, to list the repositories for the authenticated user: + # curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user/repos + env: + CLOUD_PROVIDER_API_KEY: ${{ secrets.CLOUD_PROVIDER_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..16f0aa0 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,15 @@ +name: Check Links + +on: + workflow_dispatch: + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Check links in README.md + uses: lycheeverse/lychee-action@v1.9.3 + with: + args: ./README.md \ No newline at end of file