Skip to content

Commit

Permalink
ci: replace ubuntu with windows for consistent snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Nov 26, 2021
1 parent 9892c72 commit 31c1d1d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
CI-Build:
runs-on: ubuntu-latest
runs-on: windows-latest
defaults:
run:
shell: bash
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
run: npm run serve & npm run test:e2e

Test:
runs-on: ubuntu-latest
runs-on: windows-latest
defaults:
run:
shell: bash
Expand Down
42 changes: 21 additions & 21 deletions src/templates/blog/blogTemplate.jsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import React, { useState } from "react"
import { graphql, Link } from "gatsby"
import BlogLayout from "../../components/blog/blogLayout"
import MenuCategory from "../../components/blog/menuCategory"
import PropTypes from "prop-types"
import SEO from "../../components/shared/seo"
import Flip from "react-reveal/Flip"
import { GreyButton } from "../../components/style/styleComponent"
import Bg from "../../images/blog/colorful-world.jpg"
import { backgroundMovement } from "../../utils/hooks/backgroundMovement"
import React, { useState } from "react";
import { graphql, Link } from "gatsby";
import BlogLayout from "../../components/blog/blogLayout";
import MenuCategory from "../../components/blog/menuCategory";
import PropTypes from "prop-types";
import SEO from "../../components/shared/seo";
import Flip from "react-reveal/Flip";
import { GreyButton } from "../../components/style/styleComponent";
import Bg from "../../images/blog/colorful-world.jpg";
import { backgroundMovement } from "../../utils/hooks/backgroundMovement";

const blogTemplate = ({ data: { allMdx }, pageContext }) => {
const [tagMenu, toggleTagMenu] = useState(false)
const [tagMenu, toggleTagMenu] = useState(false);

function handleTagMenu() {
toggleTagMenu(!tagMenu)
toggleTagMenu(!tagMenu);

if (screen.width <= 1280 && tagMenu === false) {
var element = document.querySelector("#tagMenu")
element.scrollIntoView()
var element = document.querySelector("#tagMenu");
element.scrollIntoView();
}
}

backgroundMovement("blogBackground")
backgroundMovement("blogBackground");

return (
<>
Expand Down Expand Up @@ -76,7 +76,7 @@ const blogTemplate = ({ data: { allMdx }, pageContext }) => {
tagMenu={tagMenu}
/>
<div className="mt-10">
<Link to="/blog#read">
<Link to="blog#read">
<GreyButton className="text-sm bg-gray-700 text-white hover:bg-black">
Start reading
</GreyButton>
Expand All @@ -95,15 +95,15 @@ const blogTemplate = ({ data: { allMdx }, pageContext }) => {
tagMenu={tagMenu}
/>
</>
)
}
);
};

export default blogTemplate
export default blogTemplate;

blogTemplate.propTypes = {
pageContext: PropTypes.any,
data: PropTypes.any
}
};

export const query = graphql`
query blogList($skip: Int!, $limit: Int!) {
Expand All @@ -126,4 +126,4 @@ export const query = graphql`
}
}
}
`
`;
6 changes: 3 additions & 3 deletions tests/websitePaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"/visualisation",
"/docs/03/09/2021/LearningPath-Statistical-Modelling-3",
"/docs/21/07/2021/Contribute-visualisation",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-1",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2",
"/docs/18/03/2021/LearningPath-Statistical-Modeling",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-1",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2-more-random-sampling",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2-non-random-sampling",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2-optional",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2-more-random-sampling",
"/docs/18/03/2021/LearningPath-Statistical-Modeling-2",
"/docs/01/03/2021/Hosting-Shiny-Apps",
"/docs/05/07/2020/LearningPath-Workflow",
"/docs/04/07/2020/LearningPath-Lab",
Expand Down

0 comments on commit 31c1d1d

Please sign in to comment.